-
git log --name-only;
-
git rebase -i <SHA>~;
- 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
- git status is your friend.
- create new branches to protect your code.