News for hackers. Stuff that matters.
Re:Oh Shit, Git? by AlexCoventry on Sunday August 16, 2020 @01:36AM (#24175482)
> but I don't fully understand how rebase works yet

Git maintains a tree of commits, each commit pointing to its parent. When you rebase, by default git finds the last-common-ancestor commit of the branch you're rebasing and the branch you're rebasing onto. That common ancestor is the base, and the subsequent commits on the branch you're rebasing are replayed on the latest commit of the branch you're rebasing onto.

> Or the hard flag

You mean reset --hard?

There are no comments on this comment yet.