Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

multiple git

# Account 1 (work or personal) - the default config
Host github.com
   HostName github.com
   User git
   IdentityFile ~/.ssh/id_rsa
   
# Account 2 (work or personal) - the config we are adding
Host github-uraccount   
   HostName github.com
   User git
   IdentityFile ~/.ssh/id_rsa_uraccount
Source by betterprogramming.pub #
 
PREVIOUS NEXT
Tagged: #multiple #git
ADD COMMENT
Topic
Name
4+9 =