Git · Senior · Question 76 of 76

What happens to commit hashes when you rebase onto the same base without changes?

Explanation

If the branch is already on top of the base, rebase is a no-op. Forcing it re-applies commits with new committer dates, hence new hashes.

Further reading

Problem with a question

Git · Senior · question 76

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz