coding/git.md
... ...
@@ -15,6 +15,16 @@ set username for [single repo][]
15 15
git config user.username 'name'
16 16
```
17 17
18
+set signing key for local repo
19
+```
20
+git config user.signingkey <id>
21
+```
22
+
23
+[signing][] commits
24
+```
25
+git commit -S -m 'msg'
26
+```
27
+
18 28
[making a pull request][]
19 29
20 30
[branching and rebasing][]
... ...
@@ -28,3 +38,4 @@ git config user.username 'name'
28 38
[branching model]: https://nvie.com/posts/a-successful-git-branching-model/
29 39
[single repo]: https://help.github.com/articles/setting-your-username-in-git/
30 40
[merging and rebasing]: https://www.atlassian.com/git/tutorials/merging-vs-rebasing
41
+[signing]: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work