DEV Community

Waylon Walker
Waylon Walker

Posted on • Originally published at waylonwalker.com

Git rebase to the beginning of time

Git has a built in way to rebase all the way back to the beginning of time. There is no need to scroll through the log to find the first hash, or find the total number of commits. Just use --root

git rebase --root
Enter fullscreen mode Exit fullscreen mode

Top comments (0)