From 8ba4e34e2c5898edadc8df8ee28e8db5e3ebefa6 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Fri, 22 Mar 2024 10:08:40 +0100 Subject: [PATCH] Add tip about patch command alias in user guide --- _guides/user.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_guides/user.md b/_guides/user.md index 8618570..3270474 100644 --- a/_guides/user.md +++ b/_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