Skip to content

Instantly share code, notes, and snippets.

@chrismarksus
Last active August 29, 2015 14:19
Show Gist options
  • Save chrismarksus/27c428a4d621df4a8c1e to your computer and use it in GitHub Desktop.
Save chrismarksus/27c428a4d621df4a8c1e to your computer and use it in GitHub Desktop.
git aliases
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.s 'status -s'
git config --global alias.scrub '!git reset --hard HEAD~10 && git pull'
git config --global alias.ls-alias 'config --get-regexp \"^alias\\.\"'
git config --global alias.ls-branch 'for-each-ref --sort=-committerdate refs/heads/ --format="%(committerdate:short) %(authorname) : %(refname:short) - %(contents:subject)"'
git config --global alias.last 'log -1 HEAD --stat'
git config --global alias.append 'commit --amend'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment