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 filesgit add .git stashgit stash drop# remove untracked filesgit clean -fdx -
Quick Git - Remove branches
# remove local branchgit branch -D {branch}# remove remote branchgit push -d origin {branch}