Tidbits
-
Make Git easier, use better tooling
Branching, merging, creating releases and cleaning up shouldn't be as hard as it is sometimes. I’ve been using the extremely useful scalable-git-branching-tools for a few months now and Git has never been so simple.
-
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}