Multiple Git Ssh Config Single Machine
Published: October 20, 2021
Tags:
To use multiple github account on same hosts, and using ssh to push and pull the repo. We have multiple tricks
- Using ssh config tricks with hosts: https://gist.github.com/JoaquimLey/e6049a12c8fd2923611802384cd2fb4a
Used host trick before, but while setting up again and looking for documentation found this neat way using gitconfig
.
We can have to first set .gitconfig
file in home directory.
|
|
.gitconfig-work
file
|
|
.gitconfig-personal
file
|
|
It will help me to improve/learn.