You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/.config/git-id/identities/work.gitconfig ← one fragment per identity
37
-
└─ [user] name / email / signingkey, [commit] gpgsign
37
+
└─ [user] name / email / signingkey, [gpg] format,
38
+
[commit] gpgsign, [core] sshCommand
38
39
```
39
40
40
41
A route on a directory applies to it **and every repository below it**.
@@ -93,7 +94,7 @@ guessing one from your hostname.
93
94
| Command | What it does |
94
95
|---|---|
95
96
|`git id init`| One-time setup (idempotent, backs up your gitconfig first). |
96
-
|`git id create <name>`| Create an identity (`--name`, `--email`, `--signing-key`, `--sign`; prompts interactively if omitted). |
97
+
|`git id create <name>`| Create an identity (`--name`, `--email`, `--signing-key`, `--sign`, `--format`, `--ssh-key`/`--ssh-command`; prompts for the basics if omitted). |
97
98
|`git id list`| Identities and the directories routed to them (`--paths` for the dir → identity map). |
98
99
|`git id show <name>`| Full detail of one identity, including the raw fragment. |
99
100
|`git id edit <name>`| Update via flags, or open the fragment in `$EDITOR` when no flags are given. Hand-added keys survive. |
@@ -107,6 +108,26 @@ guessing one from your hostname.
107
108
108
109
Every command has a detailed `--help`.
109
110
111
+
### Signing and SSH keys
112
+
113
+
An identity can carry its signing and transport settings, so they follow the
114
+
directory like the name and email do:
115
+
116
+
```console
117
+
$ git id create work --name "Jane Doe" --email jane@work.example \
0 commit comments