diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-03-26 23:16:13 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-03-27 00:13:18 +0200 |
| commit | 2fccc0d193497eb2ee3127270dea12be103f1bc2 (patch) | |
| tree | bc1ab38eb721c43cd8f37a3a9a01d71ffdca13e9 /HACKING | |
| parent | 5d073bdb0501f2ff88af1d8a6b0add90a9e97427 (diff) | |
maint: Give command to install the pre-push hook.
* HACKING: Add 'cp' line to install the pre-push hook.
Diffstat (limited to 'HACKING')
| -rw-r--r-- | HACKING | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -46,9 +46,10 @@ configure Git to automatically sign commits, run: | |||
| 46 | git config commit.gpgsign true | 46 | git config commit.gpgsign true |
| 47 | git config user.signingkey CABBA6EA1DC0FF33 | 47 | git config user.signingkey CABBA6EA1DC0FF33 |
| 48 | 48 | ||
| 49 | You can prevent yourself from accidentally pushing unsigned commits to Savannah | 49 | You can prevent yourself from accidentally pushing unsigned commits to |
| 50 | by using the pre-push Git hook called 'pre-push'. It's located at | 50 | Savannah by using the pre-push Git hook called located at ‘etc/git/pre-push’: |
| 51 | 'etc/git/pre-push'. | 51 | |
| 52 | cp etc/git/pre-push .git/hooks/pre-push | ||
| 52 | 53 | ||
| 53 | When pushing a commit on behalf of somebody else, please add a Signed-off-by | 54 | When pushing a commit on behalf of somebody else, please add a Signed-off-by |
| 54 | line at the end of the commit log message (e.g. with ‘git am --signoff’). | 55 | line at the end of the commit log message (e.g. with ‘git am --signoff’). |
