Skip to content

Instantly share code, notes, and snippets.

@el-rotny
Created July 1, 2016 20:10
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 el-rotny/bb4430df6d2531f4936bfca6e40b341c to your computer and use it in GitHub Desktop.
Save el-rotny/bb4430df6d2531f4936bfca6e40b341c to your computer and use it in GitHub Desktop.
Gitconfig with Aliases
[core]
filemode = false
excludesfile = /Users/sugarskull/.gitignore_global
pager = less -r
whitespace = trailing-space,space-before-tab
[color]
ui = auto
branch = auto
diff = true
interactive = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
ignore=!([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/'
prettylog = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold$'
branchlog = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C($'
track = "!git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`"
last = log -1 HEAD
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
lg = !"git lg1"
co = checkout
b = branch
c = commit
s = status
d = diff --color-words
p = pull —rebase
[user]
name = sugarskull
email = rodrigo@designcollective.io
[mergetool]
keepBackup = true
prompt = false
[difftool]
prompt = false
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[diff]
renames = copies
mnemonicprefix = true
[branch]
autosetupmerge = true
[rerere]
enabled = true
[merge]
stat = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment