Skip to content

Instantly share code, notes, and snippets.

@FullStackForger
Last active March 18, 2016 15:29
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 FullStackForger/0357bb957296d1068712 to your computer and use it in GitHub Desktop.
Save FullStackForger/0357bb957296d1068712 to your computer and use it in GitHub Desktop.
GIT Aliases .gitconfig
[core]
legacyheaders = false
quotepath = false
pager = less -r
excludesfile = /Users/Marek/.gitignore
# autocrlf = true #uncomment on windows
[color]
ui = auto
interactive = auto
[alias]
s = status
r = reset
alias = config --get-regexp ^alias\\.
a = !git add . && git status
aa = !git add . && git add -u . && git status
ac = !git add . && git commit
au = !git add -u . && git status
acm = !git add . && git commit -m
c = commit
cm = commit -m
ca = commit --amend
d = diff --color-words
dh = diff --color-words head
l = log --pretty=format:\"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]\" --decorate
ld = log --pretty=format:\"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]\" --decorate --date=short
lf = log --name-status --oneline
lt = log --graph --decorate --pretty=oneline --abbrev-commit
ll = log --stat --abbrev-commit
lld = log --stat --abbrev-commit --date=short
llt = log --graph --decorate --pretty=oneline --abbrev-commit
master = checkout master
spull = svn rebase
spush = svn dcommit
tree = log --graph --decorate --pretty=oneline --abbrev-commit
[user]
email = indieforger@gmail.com
name = IndieForger
[url "https://"]
insteadOf = git://
[difftool "sourcetree"]
cmd = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge --nosplash \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/DiffMerge.app/Contents/MacOS/DiffMerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment