How do you squash last N commits into a single commit?
Experience Level:
Mid-level
Tags:
Git
Source control
Answer
Related Git job interview questions
-
Why is it advisable to create an additional commit rather than amending an existing commit?
Git Source control Mid-level -
What is Git bisect? How can you use it to determine the source of a (regression) bug?
Git Source control Mid-level -
What does commit object contain?
Git Source control Mid-level -
How do you find a list of files that wer changed in a particular commit?
Git Source control Mid-level -
How do you revert a commit that has already been made public/pushed to a remote repository?
Git Source control Mid-level