How to display "HEAD~*" in "git log"

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

 



Hi

I frequently use "git rebase" to move commit to a specific location, to
know which commit ID as param of "git rebase", I have to list all commits
by "git log --oneline", then copy specific commit ID, and executing "git
rebase" as

  git rebase -i <copied commit ID>~

because SHA sum is hard to memorize, so I have to use copy and past,
which is too boring. So, I wonder if there is a way to let "git log"
display commits like following:

  HEAD   <one line commit message>
  HEAD~1 <one line commit message>
HEAD~2 <one line commit message>
HEAD~3 <one line commit message>
  ...

With these "HEAD~*", I can easily directly type them and no need to
move my fingers out of keyboard.

Thanks.




[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