Skip to content

Instantly share code, notes, and snippets.

@davidpatters0n
Created October 14, 2015 21:55
Show Gist options
  • Save davidpatters0n/2bc6eaf00e131fb2be90 to your computer and use it in GitHub Desktop.
Save davidpatters0n/2bc6eaf00e131fb2be90 to your computer and use it in GitHub Desktop.
[user]
email = ahmetabdi@gmail.com
name = Ahmet Abdi
[alias]
br = branch
; Example: g ch master...staging
ch = log --cherry --pretty=format:\"%C(auto)%h (%ar) %an: %s\" --date-order --reverse
ci = commit
co = checkout
df = diff
g = grep -I
lg = log -p
loq = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
st = status
; will print out a format of the history
find = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
; with the above alias in place that mean that I can now do `g st`. And that will return my git status.
; (note that `g` is my alias in my ~/.config/fish/fish.config (function g; git $argv ; end) <--
[branch]
autosetuprebase = always
[color]
ui = auto
[color "branch"]
; When you do git branch the colour it will highlight
current = yellow reverse
local = yellow
remote = green
[color "diff"]
; this is for when you do git diff
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
tool = diffconflicts
[diff "exif"]
textconv = exiftool
[difftool]
prompt = false
[merge]
log = true
tool = diffconflicts
[push]
default = simple
[rerere]
enabled = 1
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "git@heroku.com:"]
insteadOf = "heroku:"
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[difftool "diffconflicts"]
cmd = diffconflicts mvim $BASE $LOCAL $REMOTE $MERGED
[mergetool "diffconflicts"]
cmd = diffconflicts mvim $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment