I'm aware of how git rebase
works, and I've been using it in production for a while. It replays all of the commits of a branch onto another branch. It rewrites history of your current branch.
I've recently started playing around with git rebase --skip
, although I was initially terrified of it. I realize it just skips that commit as if it never happened.
It seems to me that the resulting working directory would be the same in these two cases:
1) all of the commits are skipped except the most recent
2) all of the commits are replayed, such that the commits are resolved in favor of their
branch.
Reminder: their
is the branch that you are currently on when you rebase.
Other reminder: I'm specifically interested in the working directory. Is this the same?
Is it true that the working directory is the same result?