Tuesday, February 11, 2014

Github - eGit: How to add the user for current Repository

In eGit, when you try to commit, then default author and email Id appears every time, which you want to change to some other user and emailid. So, to make it happen following are the ways:

1) Open the current Repository in gitShell:
>git config user.name "Your Name Here"
>git config user.email your@email.com

This will make the relevant changes in ~/.git/config file


2) You can directly edit ~/.git/config file and add the following lines:
[user]
name = Kuldeep Dhole
email = dkuldeep11@github.com


No comments:

Post a Comment