Git: Push all branches/tags to another repository

When you create a new ‘mirror’ of a Git repository, you would like to copy all branches and all tags to that location. There is only single command that performs this task:

git push YOUR_NEW_REMOTE --all

If you only want to push the tags, use

git push YOUR_NEW_REMOTE --tags


Leave a Reply