Git - What is the difference between push.default "matching" and "simple" -
I've been using GIT for a while, but I have never had to install a new remote repo and I have had the curiosity to do this; I am reading the tutorial and I am confused about how to get "git push" to work.
If I just use git push
then I ask to point to a default branch (?)? What is the difference between these two options which provides me?
git config --global push.default match git config --global push.default simple
Milan I have all the branches in my local repo , Push them, and if they do not match then ask me to fix it, which are the new local branches manually? Is this the best practice or the easiest?
git push
can all branches or a single dependent on this configuration Press:
Push all branches
git config --global push.default match
All branches will be pushed into the remote branch and will merge them. If you do not want to push all the branches, then you can push only the current branch.
Push only the current branch
git config --global push.default Simple
Therefore, it is better that in my opinion, use this option and push the branch branch from the branch.
Please go to
Comments
Post a Comment