Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: cbadd39df6
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (82 sloc) 3.086 kB
[user]
name = Gabriel Adomnicai
email = gabesoft@gmail.com
[alias] ; leave at least 2 spaces between the alias name and the equal sign
ad = add -A
br = checkout -b ; create a new branch and switch to it
ca = !git add -A "$(git rev-parse --show-cdup)" && git commit -v --amend
; removes files that are not in version control (skips ignored but includes empty directories)
cc = !git checkout "$(git rev-parse --show-toplevel)" && git clean -fd "$(git rev-parse --show-cdup)"
; removes files that are not in version control (includes ignored and empty directories)
ccc = !git checkout "$(git rev-parse --show-toplevel)" && git clean -fdx "$(git rev-parse --show-cdup)"
cf = cat-file -p
ch = diff --name-status -r
ci = !git add -A "$(git rev-parse --show-cdup)" && git commit -av
co = checkout
cp = cherry-pick
df = diff
dm = difftool --tool=mvimdiff
ds = diff --staged
dv = difftool --tool=vimdiff
fw = log --follow ; file commit history needs to be followed by a file path
gb = gui blame ; gui interface to git blame needs to be followed by a file path
last = log -p -1 HEAD
ld = log -p ; show log with diffs (add -x to show only the x most recent entries)
lf = ls-files -s
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit
lo = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit
lr = ls-remote
ls = log --decorate --pretty=oneline --stat
lt = !git --no-pager log --color --decorate --pretty=format:'%Cred%h%Creset %C(cyan)%an%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit -30 && git --no-pager log --pretty=format:'%n' -1
mg = merge
ms = checkout master
ph = push heroku
pm = push origin
po = push origin
pr = pull --rebase
rf = rm -f ; delete force (for files)
rh = reset HEAD --
rr = rm -r ; delete recursively (for directories)
rs = rm --cached ; delete from staging
so = stash pop ; stash pop
st = status
su = stash ; stash push
undo = reset --hard HEAD~
alias = !cat ~/.gitconfig | awk '/^[ \t]{2}[a-z]+[ \t]{2,4}=/'
[core]
editor = mvim -f
excludesfile = ~/.gitignore
[mirror]
summary = true
[branch]
autosetupmerge = true
[help]
autocorrect = 1
[push]
default = matching
[color]
ui = auto
branch = auto
status = auto
diff = auto
[color "diff"]
meta = yellow
frag = cyan
old = red
new = green
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = blue
changed = green
untracked = cyan
[github]
user = gabriel
[difftool "vimdiff"]
cmd = vimdiff
[difftool "mvimdiff"]
cmd = ~/mvimdiff.sh $LOCAL $REMOTE
[difftool]
prompt = false
Jump to Line
Something went wrong with that request. Please try again.