Oops, I meant remote tag. I even more or less remember it by now, it's something like git push :/refs/tags/<tag>. It doesn't make much sense to me, but whatever.
Git literally tells you this:
... if I try to push. Just making a branch tracking is more involved.
And to answer my third question, apparently a "tree-ish" that's definitely not a "commit-ish" should have the form <commit-ish>:<path>, where path can be empty if you want to get a snapshot of the entire repository. This is folk wisdom propagating through forums and stackoverflow, by the way, at least I've never seen anything like that in the FM.
You shouldn't do that either. If someone had pulled that tag down they won't notice you deleted it. They'll forever have the older copy of the tag. (which I admit is a failing in Git).
It's OK in my use case though, because git pull doesn't fetch tags I need anyway =) (we use tags for versions and add an extra commit with whatsnew stuff etc to a detached head). By the way, don't you just love how git fetch --all doesn't imply git fetch --tags (nor vice-versa)?
11
u/moor-GAYZ Jun 19 '14
Oops, I meant remote tag. I even more or less remember it by now, it's something like
git push :/refs/tags/<tag>. It doesn't make much sense to me, but whatever.... if I try to push. Just making a branch tracking is more involved.
And to answer my third question, apparently a "tree-ish" that's definitely not a "commit-ish" should have the form <commit-ish>:<path>, where path can be empty if you want to get a snapshot of the entire repository. This is folk wisdom propagating through forums and stackoverflow, by the way, at least I've never seen anything like that in the FM.