git: how to have per project configuration? -


this question has answer here:

i'm using git several project @ same time. apparently have global setting username, etc. want maintain different user name, email, etc different project. how achieve this?

just use git config command without --global parameter.

instead of

git config --global user.name "lang2" 

type

git config user.name "lang2" 

as described in documentation, global configurations stored in ~/.gitconfig, , per repository configuration resides in .git/config.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -