-
-
Save ahmetabdi/0c7738158a59c6de68da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
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 "[email protected]:"] | |
insteadOf = "gh:" | |
pushInsteadOf = "github:" | |
pushInsteadOf = "git://github.com/" | |
[url "git://github.com/"] | |
insteadOf = "github:" | |
[url "[email protected]:"] | |
insteadOf = "gst:" | |
pushInsteadOf = "gist:" | |
pushInsteadOf = "git://gist.github.com/" | |
[url "git://gist.github.com/"] | |
insteadOf = "gist:" | |
[url "[email protected]:"] | |
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