initial commit
Some checks failed
Build, Test & Publish / Build and Publish Container Image (push) Has been cancelled
Build, Test & Publish / Deploy to Infrastructure (push) Has been cancelled
Build, Test & Publish / Build (push) Has been cancelled

This commit is contained in:
2024-09-05 13:54:08 +10:00
commit 8ad5845efc
57 changed files with 6046 additions and 0 deletions

3
docs/git/index.md Normal file
View File

@ -0,0 +1,3 @@
# Git Snippets and Musings
#### [SSH Config](./ssh-config.md)

14
docs/git/ssh-config.md Normal file
View File

@ -0,0 +1,14 @@
# Git SSH Config
When using SSH to connect to a remote repository, you can configure your SSH client to use a specific key for a specific host. This is useful when you have multiple keys and want to use a specific key for a specific host.
Sample configuration is below
```bash
# ~/.ssh/config
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/my-github-key
PreferredAuthentications publickey
```