Answer the question
In order to leave comments, you need to log in
How to set different user.name and user.email to different local repositories in git?
How to set different user.name and user.email to different local repositories in git?
For example, there are C/First/
C/Second/
folders .
I want the code in Git bash to go to the First folder and make commits, then commits and all manipulations were done from one user.
And when in Git bash I go to the Second folder and do manipulations in it, so that they are saved under a different "user".
How to implement this? I suppose that you need to somehow do a local config ...
Answer the question
In order to leave comments, you need to log in
git-config
--local
For writing options: write to the repository .git/config file. This is the default behavior.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question