On Friday, September 12, 2014 11:36:05 PM UTC+4, Sam Roberts wrote:
>
> There are shorthands for going back from HEAD, but not for the initial 
> commit, AFAICT. 
>
> I often want to do this when rebasing, and have come to tagging the 
> initial commit in my repos with INITIAL. 
>
> Is there a better syntax I'm missing? 
>

git-rebase supports the "--root [BRANCH]" command-line option to refer
to the root commit of the current (or specified) branch. See [1] for more 
info.

1. https://www.kernel.org/pub/software/scm/git/docs/git-rebase.html

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to