Git: How to configure git to push only your current branch - makandra dev

krischik(62)
Published in
#dlike
Words
94
Reading
1 min
7y
Listen to this post
~1 min

Shared From Dlike

Why is it that every git tutorial always suggest to use git config --global to set the git configurations. And usually without telling the user that the --global part does.

This is actually bad advice. It will change the behaviour of all clones which is rarely what you want — at least in the long run.

In the long run you want fine tuned setups specific for every clone and global setting which you might have forgotten about in a month time are a hinderance.

So please stop using --global in your tutorials.

Source of shared Link



Git: How to configure git to push only your current branch - makand... | Ecency