Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Last active August 29, 2015 14:10
Show Gist options
  • Save tugberkugurlu/3577f7d7e09d4fc50b58 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/3577f7d7e09d4fc50b58 to your computer and use it in GitHub Desktop.
Git Aliases widely used by Tugberk Ugurlu (me)
# awesome log: https://gist.github.com/mathiasverraes/4505589
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
# shows all the new commits in your current branch which are not in dev
# usage: git new
git config --global alias.new 'log --pretty=oneline dev.. --reverse'
# this's the way the log should be.
# Usage: git l origin/dev..
git config --global alias.l 'log --pretty=oneline'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment