Is it possible to have different Git configuration for different projects?

前端 未结 12 735
萌比男神i
萌比男神i 2020-12-02 03:44

.gitconfig is usually stored in the user.home directory.

I use a different identity to work on projects for Company A and something else fo

12条回答
  •  自闭症患者
    2020-12-02 03:53

    To be explicit, you can also use --local to use current repository config file:

    git config --local user.name "John Doe" 
    

提交回复
热议问题