The only thing I can come up with is this: $ git rev-list --max-parents=0 HEAD
It can, though, return more than one result if you have multiple branches from the initial root (e.g. created with git checkout --orphan). In usual workflows, this should give you a unique ID. On 12 September 2014 21:35, Sam Roberts <[email protected]> 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? > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
