Skip to content
A small utility that copies tags from one git repository to another, if their commit hashes match.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
git-copy-tags.rb

README.md

This is a small utility that copies matching tags from one git repository to another. And by "matching" I mean that there's a commit in the destination repository with the same SHA hash as the commit in the source repository that the tag points to.

Usage

git-copy-tags <source-repo> <dest-repo> [-f]

By default, the script is in "dry run" mode, which means that it only prints out what it would do, without actually doing it. If you are happy with the result, add -f.

After running the command with -f, make sure to run git push --tags in the destination repository!

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.