I learned how to use git clean today when I needed to remove all untracked files in my working branch.
If a remote origin has changed or is no longer active, you can remove it with
git remote. You can also use this to add or change remote origins.
By passing the
--no-commit option to
git revert, you can forgo multiple revert commits and consolidate into just one new commit.
git diff, you can see the differences between 2 branches.