Git for Git Users

Edit on GitHub

Commit messages

Pulling

Other tricks

Undo things

Revert

Amend

Reflog

Combining commits

Scenario: you want to combine changes from multiple commits into one and they have not been pushed.

Option 1: preserving all commit messages

Option 2: new commit message

Option 3: flexibility

Reordering commits