Re: git symbolic-ref vs. reflog (vs. rebase)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Csaba Henk <csaba@xxxxxxxxxx> writes:

> "git symbolic-ref" is a dangerous command in the sense that it can
> change your HEAD position without updating the reflog. Is it
> intended behaviour?

Yes, it is.  But you can choose to do:

	$ git branch side
	$ git symoblic-ref -m "move to side" HEAD refs/heads/side
        $ git log --oneline -g HEAD@{0}
        05ddb9b HEAD@{0}: move to side
	e69de29 HEAD@{1}: commit (initial): first commit

if you wanted to.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]