Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
148 lines (132 sloc) 3.12 KB
; ~/.gitconfig
[advice]
statusHints = false
[alias]
; Add
a = add
; Branch
br = branch
; Commit
c = commit
ca = commit --all
; Checkout
co = checkout
cb = checkout -b
; Cherry Pick
cp = cherry-pick
; Clone
cl = clone
; Diff
d = diff
dc = diff --cached
cr = diff --no-prefix HEAD~..HEAD
; Log
; Some of these have come from http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples
; Usage: git fl path/to/file.ext
fl = "log -u"
ld = "log --pretty=format:'%C(yellow)%h %ad%Cred%d %Creset%s%Cblue [%cn]' --decorate --date=relative"
lds = "log --pretty=format:'%C(yellow)%h %ad%Cred%d %Creset%s%Cblue [%cn]' --decorate --date=short"
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
ll = "log --pretty=format:'%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]' --decorate --numstat"
ls = "log --pretty=format:'%C(yellow)%h%Cred%d %Creset%s%Cblue [%cn]' --decorate"
; Pull
pl = pull
; Push
ps = push
; Remote
r = remote -v
; Stash
ss = stash save
sl = stash list
sa = stash apply
sd = stash drop
; Status
s = status
; Tag
t = tag -n
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[color]
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
commit = yellow
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
updated = green
[commit]
; template = ~/.gitconfig.d/commit.tmpl
[core]
; autocrlf = input
editor = vim
excludesfile = ~/.gitconfig.d/excludesfile
mergeoptions = --no-ff
whitespace = trailing-space,space-before-tab
autocrlf = input
[diff]
; external = diff
[gc]
auto=1
[help]
; autocorrect = 1
[init]
; This is used when you git init a directory
templatedir = ~/.gitconfig.d/templates
[merge]
tool = meld
summary = true
verbosity = 1
[push]
default = current
; @see http://git-scm.com/2010/03/08/rerere.html
[rerere]
enabled = true
autoupdate = true
[user]
; See the bash.local.example file
; Can be overridden by the GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL, and EMAIL environment variables.
email = JoshuaEstes@users.noreply.github.com
; Can be overridden by the GIT_AUTHOR_NAME and GIT_COMMITTER_NAME environment variables.
name = Joshua Estes
; signingkey = ''
; These allow you to just do a git pull and it will pull
; from remote origin and merge into you local master
; branch, same for develop =)
;[branch "master"]
; remote = origin
; merge = refs/heads/master
;[branch "develop"]
; remote = origin
; merge = refs/heads/develop
; Enable PHP lanaguage
[hooks "php"]
enabled = yes
[hooks "php.phpcs"]
enabled = yes
bin = phpcs
options = --ignore=*.dist --standard=PSR1,PSR2 -n
[hooks "php.phpmd"]
enabled = yes
bin = phpmd
report = text
ruleset = cleancode,codesize,design,naming,unusedcode
[hooks "php.lint"]
enabled = true
bin = php
[hooks "php.composer"]
enabled = true
bin = ~/bin/composer