I have a bare git repo set up which runs a post-update hook as follows:
GIT_WORK_TREE=/path/to/code git checkout -f
This works well when pu
To checkout a tag on the remote side, you need to push it first:
git push --tags
As mentioned in "With GitHub how do I push all branches when adding an existing repo?", even git push --all wouldn't push your tags, only all refs under refs/heads/.
git push --all
refs/heads/