Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

31 lines (25 loc) · 1.02 KB

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 "[email protected]"

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.aaakk.us.kg-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.aaakk.us.kg-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