Re: push not resolving commit-ish?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:57:25
"Michael S. Tsirkin" [off-list ref] writes:
On Thu, May 23, 2013 at 11:10:32AM -0700, Junio C Hamano wrote:quoted
Felipe Contreras [off-list ref] writes:quoted
On Thu, May 23, 2013 at 5:53 AM, Michael S. Tsirkin [off-list ref] wrote:quoted
Looks like push can't resolve tags to commits. Why is that? linux$ git push -f $PWD v3.10-rc2:refs/heads/vhost-nextPerhaps v3.10-rc2^{}. Yeah, totally and completely not-user-friendly,More commonly "v3.10-rc2^0:vhost-next", if you are truly pushing it out to a remote repository, but then it invites a puzzlement "What do you plan to do next after pushing? The only reason v3.10-rc2 is used is because there is not yet a local branch that will host the vhost-next changes that is built on top of that tag (otherwise you would be pushing that branch to vhost-next)". But in this particular case, you are force-pushing into the current repository, and it is spelled much more commonly git branch -f vhost-next v3.10-rc2 I would think.That was just a bad example though, I really use it for push to remove.
Then it invites a puzzlement as you can see above.