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:

If you only want to push the tags, use

 

Leave a Reply