How do I make a branch tracking if I failed to do that initially?
Git literally tells you this:
fatal: The current branch fake has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin fake
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).
7
u/[deleted] Jun 19 '14
You don't. That was easy :-)
Git literally tells you this:
etc...