Assume, we want to have two Git identities, one for Github and one for work. Therefore, create two .gitconfig files in your home folder. touch ~/.gitconfig_github touch ~/.gitconfig_work Then add the specific Git identity in respective .gitconfig files.
↧