The command is particularly useful in combination with git add when you only want to commit certain files. If you have changes in your current branch, you will need to either stash them or undo. A rebase will look at each commit on your branch and update the code to make it seem like you've been working off the new base all along. It doesn't know which version of the code.

6m read timeFrom dev.to
Post cover image
10 Comments

Sort: