wiki:git_pull_via_ssh_public_key
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:git_pull_via_ssh_public_key [2024/01/30 10:50] – add custom host example antisa | wiki:git_pull_via_ssh_public_key [2025/08/25 14:31] (current) – [References] add serverfault link antisa | ||
---|---|---|---|
Line 33: | Line 33: | ||
IdentityFile ~/ | IdentityFile ~/ | ||
</ | </ | ||
+ | <WRAP center round info 60%> | ||
+ | When using Vim vim-fugitive plugin, the GBrowse command can only work with above if it is set in ~/ | ||
+ | </ | ||
+ | |||
Then to clone use that host | Then to clone use that host | ||
git clone git@github-someorg: | git clone git@github-someorg: | ||
+ | | ||
+ | <WRAP center round important 60%> | ||
+ | SSH will try all of the keys it sees, so the ones provided by any running ssh-agent and the file specified above in IdentityFile. This might not be what you want, because if the ssh key from the ssh-agent is used by your different github user for different repos. | ||
+ | |||
+ | To explicitly use only the key in IdentityFile also add '' | ||
+ | </ | ||
+ | |||
| | ||
====== Tested on ====== | ====== Tested on ====== | ||
Line 45: | Line 56: | ||
====== References ====== | ====== References ====== | ||
+ | * https:// |
wiki/git_pull_via_ssh_public_key.1706611847.txt.gz · Last modified: by antisa