Tidbits
-
Quick Git - Undo local commits
git reset --soft {commit sha}
-
Quick Git - Remove local commits
git reset --hard {commit sha}
-
Quick Git - Undo local changes
# remove uncommitted files
git add .
git stash
git stash drop
# remove untracked files
git clean -fdx
-
Quick Git - Remove branches
# remove local branch
git branch -D {branch}
# remove remote branch
git push -d origin {branch}