Project specific user info for Git repos

You can have project specific user info for your git repositories.

Normally you set your global info with the use of the –-global flag

git config –-global user.email “me@example.com”

This drops the user.email in the global .gitconfig file.

But, if you leave out the –-global flag and you are inside a project folder you can override the global settings.

git config user.email “otherme@example.com”

This will drop the user.email in the config file under the .git folder in your project.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a0133ecbab7ab970b015434ee6076970c

Listed below are links to weblogs that reference Project specific user info for Git repos:

Comments

You can follow this conversation by subscribing to the comment feed for this post.

Thank you for talking this.

I this some kind of auto mail something??

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment