git-checkout -B resets branch not showing last revision

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

 



Hi,

I recently had the following case:

1. I have a local branch called `foo` which I haven't checkout recently.
2. Due to a bad alias I ran the following command:

    git-checkout -B foo

This checked out and reset the foo branch. Which is according to the
documentation.
However, the output of the command does not show the previous state of
the foo branch
unlike what `git-reset --hard` does for some time.

The previous revision is not present in the `reflog` either as I
haven't checked it out.

I think it would be beneficial to Git users to show the previous
revision in all operations
resulting in reseting a branch.

Thanks,
Harry



[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]

  Powered by Linux