D
D
Drovosek012017-10-21 11:20:43
git
Drovosek01, 2017-10-21 11:20:43

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

1 answer(s)
A
Andrey Burov, 2017-10-21
@Drovosek01

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 question

Ask a Question

731 491 924 answers to any question