Skip to content

Commit 43781af

Browse files
authored
Corrected typo on comits, added signing example
Corrected a typo, the parameter is --sign-commits and not --sign-comits Added an example that includes GPG and signing
1 parent c23ee2c commit 43781af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

git-idm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#License: MIT
44
#Project URL: https://github.com/samrocketman/git-identity-manager
55

6-
version='0.7'
6+
version='0.8'
77

88
if ! git --version | awk 'BEGIN { FS="." }; $2 < 13 { exit(1) }'; then
99
echo 'WARNING: "git --version" is older than Git 2.13. git-idm will have unexpected behavior.' >&2
@@ -64,6 +64,10 @@ Example usage:
6464
git ${cmd} list
6565
git ${cmd} use jcool
6666
git ${cmd} remove jcool
67+
68+
Adding with a GPG key and signing each commit
69+
70+
git ${cmd} add jcool --name "Joe Cool" --email "joe@example.com" --key ~/.ssh/id_rsa --signing-key 1AA11AAA111A1AAA --sign-commits
6771
6872
Auto-switching identities based on a tracked directory path of cloned
6973
repositories.
@@ -101,7 +105,7 @@ Command options:
101105
--email EMAIL - Email of the associated identity.
102106
--key SSH_KEY - SSH private key of the associated identity.
103107
--signing-key SIGNING_KEY - (optional) add a gpg signing key.
104-
--sign-comits SIGN_COMMITS (optional) whether or not to sign commits.
108+
--sign-commits SIGN_COMMITS (optional) whether or not to sign commits.
105109
--ssh-command SSH_COMMAND - Customize the SSH command ignoring --key.
106110
list:
107111
Has no options.

0 commit comments

Comments
 (0)