How do I sync tags to a forked github repo?
I forked a repository on github and use the "fetch and merge" button on the web page to sync the latest code to my fork. I noticed that the code gets updated but new tags from the master repro don't end up in my fork. How do I make that happen?
Solution 1:
You would need, in command-line, to fetch tags
git fetch --tags upstream
Assuming upstream is the remote name referencing the original repository URL.
Then push tags to your fork
git push --tags
If you want to push only the tags from the branch you are pushing:
git config --global push.followTags true
That way, a simple git push
is enough.