Skip to content

Instantly share code, notes, and snippets.

@tmhpfnr
Last active September 1, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmhpfnr/41d7429dd7475798f23690229deec845 to your computer and use it in GitHub Desktop.
Save tmhpfnr/41d7429dd7475798f23690229deec845 to your computer and use it in GitHub Desktop.
[alias]
# tidy = "!git fetch --prune && git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d"
# pretty format git log
hist = log --decorate --oneline --graph --all --date=format:\"%Y-%b-%d %H:%M:%S\" --pretty=format:\"%C(auto)%d%Creset %C(auto)%h%Creset - %C(cyan)%an%Creset %Cgreen(%ad)%Creset : %s\"
[tag]
# sort git tags by semver
sort = version:refname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment