by Sai gowtham

How to push all branches to remote in Git

In this tutorial, we are going to learn about how to push all local branches to a remote GitHub repository in Git.

Pushing all Branches

To push the all branches to remote we need to use git push command followed by the --all flag and origin.

git push --all origin