I'd like to push and pull all the branches by default, including the newly created ones.
Is there a setting that I can define for it?
Otherwise, when I add a new branch, locally and I want to pull it from the server, what is the simplest way to do it?
I created a new branch with the same name and tried to pull but it doesn't work. Asks me for all the remote config of the branch. How do I set it.
To push the all branches to a remote git, we can use the git push command followed by the --all flag and origin.
No, git push only pushes commits from current local branch to remote branch that you specified in command.
git pull fetches updates for all local branches, which track remote branches, and then merges the current branch.
The simplest way is to do:
git push --all origin
This will push tags and branches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With