Git Squashing Commits

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Procedure

Upon applying repository changes, the Git client will give us a change to review and modify the comment associated with the commit. This will be done interactively in the editor:

# This is a combination of 2 commits.
# This is the 1st commit message:

Existing comment for commit 1

# This is the commit message #2:

Existing comment for commit 2

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.

Overview