dheeraj m於 2017年6月21日星期三 UTC+8下午6時16分39秒寫道:
>
> Hi,
>  We would like to modify the .git/config file globally for entire project 
> in the git repository.
> We would like this custom config get downloaded for all the users who does 
> git clone or git pull for this project. Is there a way to do so?
> If not is there a way to configure git hooks(commit hooks) to be modified 
> globally for project so that is effective for each and every user who does 
> git clone locally in their system?
> Thanks and Regards
> Dheeraj M
>
>
Perhaps using *include.path*:

1. Put a .gitconfig in your working tree root of repository.
2. run "git config --local include.path ../.gitconfig"
3. commit .gitconfig file
4. push that commit out

5. another cloned repository pull down the commit
6. run "git config --local include.path ../.gitconfig"

Each cloned repository just needs to run that command once.

P.S. for removing, use "git config --local --remove-section include"

Yue Lin Ho




 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to