Created
September 25, 2024 05:33
-
-
Save saravr/f1b6ffa0999d872ae3788eaa7666e5d9 to your computer and use it in GitHub Desktop.
GIT Tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Multiple git accounts | |
config: | |
Host bitbucket.org | |
Hostname bitbucket.org | |
IdentityFile ~/.ssh/id_bb | |
Host github.com-personal | |
Hostname github.com | |
User git | |
IdentityFile ~/.ssh/id_github_personal | |
Host github.com-work | |
Hostname github.com | |
User git | |
IdentityFile ~/.ssh/id_github_work | |
Set remote URL like this: | |
git remote add origin git@github-personal:saravr/HelloWorld.git | |
git remote set-url origin git@github-personal:saravr/HelloWorld.git | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment