Skip to content

Instantly share code, notes, and snippets.

@kenvac
Created February 14, 2019 13:27
Show Gist options
  • Save kenvac/1128fc765ccb7c299ab0dbc669669120 to your computer and use it in GitHub Desktop.
Save kenvac/1128fc765ccb7c299ab0dbc669669120 to your computer and use it in GitHub Desktop.
Git Commands
========== Delete all merged local branches ==========
# Courtesy: https://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
==========Oneline log decorate with stat ==========
git log --decorate --stat --oneline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment