Radish alpha
r
rad:z371PVmDHdjJucejRoRYJcDEvD5pp
Radicle website including documentation and guides
Radicle
Git
Add tip about patch command alias in user guide
Alexis Sellier committed 2 years ago
commit 8ba4e34e2c5898edadc8df8ee28e8db5e3ebefa6
parent 0ce541a
1 file changed +11 -0
modified _guides/user.md
@@ -1115,6 +1115,17 @@ In the above Git output, we see our patch's identifier displayed:
Patches are a type of COB 🌽, just like issues, and this is the SHA-1 hash that
uniquely identifies this patch.

+
> 👾
+
>
+
> If you want to avoid remembering the `git push rad HEAD:refs/patches`
+
> command, you can add an alias to your local (or global) Git configuration:
+
>
+
>     $ git config alias.patch 'push rad HEAD:refs/patches'
+
>
+
> This allows you to create a patch by simply running `git patch`. Use the
+
> `--global` option with `git config` to add the alias to your global Git
+
> config.
+

> 🧠
>
> Radicle's patch workflow is implemented using the `git-remote-rad` helper