README.md

October 3, 2019 ยท View on GitHub

Quick and easy squashing

Open two terminal windows:

  1. git log --name-only;

  2. git rebase -i <SHA>~;

Additional notes:

  1. remembering your sha can save you from a bad rebase. ๐Ÿ’ฏ

If you screw up badly:

git checkout SHA;
git checkout -b you-recovered-the-branch
  1. git status is your friend.
  2. create new branches to protect your code.

Contents

  1. 1Quick and easy squashing
  2. 2Open two terminal windows:
  3. 3Additional notes: