File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -75,3 +75,41 @@ To make sure `j k h l` run on hold, you need to run the following command on Mac
7575` defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false `
7676
7777You can read more about this on [ VSCodium/VIM's Readme] ( https://github.com/VSCodeVim/Vim/blob/master/README.md#mac-setup )
78+
79+ ## Git Configuration
80+
81+ Here are some helpful links around git configuration.
82+
83+ * https://gist.github.com/edwhad/a25f728e6add3f6d1f7a483810e9d555
84+ * https://developer.1password.com/docs/ssh/agent/advanced/#use-multiple-github-accounts
85+
86+ This is usually per-device, but I generally use 1Password to manage my SSH keys.
87+ When different SSH keys for different instances are necessary, I usually setup a
88+ directory structure for cloning repositories which map to my keys.
89+
90+
91+ My config ends up looking something like:
92+
93+ ```
94+
95+ [user]
96+ email = <my-email>
97+ name = Adriel Perkins
98+
99+ [includeIf "gitdir:~/path/to/some-org/"]
100+ path = ~/path/to/some-org/.gitconfig
101+
102+ ```
103+
104+ Then my ` .gitconfig ` in the ` some-org ` directory looks like:
105+
106+ ```
107+ [user]
108+ email = <some other email>
109+ name = Adriel Perkins
110+
111+ [core]
112+ ; Must point to public key for the 1Pass SSH Agent to handle private.
113+ sshCommand = ssh -i ~/.ssh/some-org.pub
114+
115+ ```
You can’t perform that action at this time.
0 commit comments