Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prashanthrajagopal/7724951553659467599704574dbb85c5 to your computer and use it in GitHub Desktop.
Save prashanthrajagopal/7724951553659467599704574dbb85c5 to your computer and use it in GitHub Desktop.
Git Config
[core]
whitespace = nowarn
pager = less -FRSX
edito = vim
editor = vim
whitespace=fix,-indent-with-non-tab,trailing-space#,cr-at-eol
autocrlf = input
[user]
name = Prashanth
email = Email
[color]
ui = 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]
spull = !git-svn fetch && git-svn rebase
spush = !git-svn dcommit
send = !git spull && git spush
co = checkout
ci = commit
ca = commit -a
br = branch
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
undo = reset --hard
changes=diff --name-status -r
diffstat=diff --stat -r
serve = daemon --reuseaddr --verbose --base-path=. --export-all ./.git
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; gedit `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
[giggle]
main-window-maximized = true
main-window-geometry = 700x550+66+24
history-view-vpane-position = 281
main-window-view = HistoryView
file-view-vpane-position = 460
[push]
default = simple
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[credential]
helper = osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment