Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this quote about git rebase mean?

Tags:

git

I read it in this interview of Linus.

Eventually you’ll discover the Easter egg in Git: all meaningful operations can be expressed in terms of the rebase command. Once you figure that out it all makes sense.

It does not look like just a joke. Now I wonder how all operations can be expressed with rebase.

like image 432
Michael Avatar asked Dec 06 '25 02:12

Michael


1 Answers

Per the quora question about this exact quote, the post is satire.

Coincidentally, expressing git operations with plumbing commands is actually quite easy, and pretty interesting. Check out Chapter 10 in the git-scm book for some fun details. You'll learn a lot along the way.

Finally, you might be surprised to learn that git rebase is actually a set of sophisticated shell scripts. Read their source here, here, here, and here. Following them through their operations is an excellent demonstration of git's core ethos: applying textual diffs in a arbitrary order. It's a great way to learn the more advanced concepts of commit reordering.

like image 71
Christopher Avatar answered Dec 08 '25 15:12

Christopher