Step-2Īdd tag with username and email info. We will use different username and email for each repository. Here is example I’ve shown total 5 Crunchify repositories. In this tutorial we will go over steps on how to use different setting for different repositories: Step-1Ĭlone your Work repository and Private repository to your laptop/desktop. How to Change Author Name and Email of Commits on macOS?.How can I change the author (name / email) of a commit?.GIT – different config for different repository.Set GitHub email address on a per repository basis.Setting your commit username and email address in Git.gitconfig file for each account □ If you have any of below questions then you are at right place: gitconfig file is use for both account and there is no way you could separate out different. You need to be very careful before committing to each repository.īy default hidden. This is a big problem for your Work and Personal Github or Bitbucket account. gitconfig file looks like: Īs you see above, there is tag called all git clients including smartGit picks up that username, email and will push using that setting. Most of the fortune 500 companies are now using GitHub as their official code repository.īy default //.gitconfig file is used for all related information during commit. Do you have Personal GitHub and Work related GitHub account? I’m sure you do.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |