Friday, September 18, 2015

Git: Push a local repo including all branches

After using a local Git repo for a while, it was time to push all changes to a remote repository. On my local repository, I also created a few branches. Before I pushed each branch one by one. But there had to be a better way?

Of course there is! To push all your branches at once, you can run the following command:

git push REMOTE --all

No comments: