Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Created July 26, 2016 15:37
Show Gist options
  • Save RafalSladek/74fbd1b67e47f6d050932fad1d877652 to your computer and use it in GitHub Desktop.
Save RafalSladek/74fbd1b67e47f6d050932fad1d877652 to your computer and use it in GitHub Desktop.
git config with git aliases
[user]
name = Rafal
email = [email protected]
[push]
default = matching
[ui]
color = auto
[alias]
st = status
pl = log --graph --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\"
slog = log --pretty=\"%Cgreen%h%Creset – %ai – %s (%Cblueby %cn%Creset)\" HEAD~15..HEAD
co = checkout
hl = log --pretty=\"%h\"
br = branch
ci = commit
unstage = reset HEAD --
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%aN, %cr)%Creset' --abbrev-commit --date=relative
[branch]
autosetuprebase = always
[http]
sslVerify = true
[core]
autocrlf = input
editor = vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment