This caused a bit of a headache. This is the scenario:
In repo 1:
- Edit some stuff,
- git commit,
- git tag -a,
- git push --tags.
In repo 2:
- git pull --tags,
-> The changes from the edit are visible.
This definitely isn't clear from the documentation:
All refs under $GIT_DIR/refs/tags are pushed, in addition to refspecs explicitly listed on the command line.--cut--
But very cool, neverthless. This means it's not possible to accidentally only push the tags and not the changes associated with them.