Skip to content

Instantly share code, notes, and snippets.

@ydbondt
Last active October 13, 2015 21:38
Show Gist options
  • Select an option

  • Save ydbondt/4259364 to your computer and use it in GitHub Desktop.

Select an option

Save ydbondt/4259364 to your computer and use it in GitHub Desktop.
My Git Aliasses
[alias]
lg = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
branch-name = "!git rev-parse --abbrev-ref HEAD"
publish = "!git push -u origin $(git branch-name)"
delete-merged-branches = "!git checkout master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
changed = "!git log --color --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' $(git branch-name) ^central/master --no-merges"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment