To delete all local branches that are already merged into the currently checked out branch exclude master, stage branches
git branch --merged | egrep -v "(^\*|master|stage)" | xargs git branch -d
See how many lines of code you have written today
git diff --shortstat "@{0 day ago}"
Uncommit something (3 commit back)
git reset --soft HEAD~3