Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Several git account on same computer

In case you need to setup several git account on the same PC, this link is cool !

In brief generate the private ssh rsa key:

ssh-keygen -t rsa -b 4096 -C "perso@mail.fr"

Store the generated key in ~/.ssh/perso_rsa. Then edit the ~/.ssh/config file.

Host github.com
 HostName github.com
 User git
 AddKeysToAgent yes
 IdentityFile ~/.ssh/id_rsa
# Personal GitHub account
Host github.com-perso
 HostName github.com
 User git
 AddKeysToAgent yes
 IdentityFile ~/.ssh/perso_rsa

Now each time you need to clone a personnal repo, you can use the git clone command with github.com-perso domain address.

Installing basic environment files

sudo apt -qq -y install wget && wget -q https://raw.githubusercontent.com/EasyRiderr/basic_env_files/master/install_my_env.sh && chmod a+x install_my_env.sh && sudo ./install_my_env.sh && rm install_my_env.sh

About

Just to keep a track of env config files for bash, vim, ...

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages