Git Single Machine Multiple Accounts
Links: 106 Git Index
- Create an config file in
~/.ssh - Sample file
- Generate key and upload the
.pubpart to GitHub accounts.
You would be thinking why can't I use the same public key for all the hosts?
GitHub doesn't allow to you have the same public key across all the repositories globally
- Cloning personal projects :
git clone git@github.com:UserName/RepoName.git -
Cloning project-cool projects :
git clone git@project-cool:UserName/RepoName.git -
Use ssh for pushing instead of your gpg key authentication
Last updated: 2022-06-12