-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
27 lines (27 loc) · 1009 Bytes
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[user]
email = gorka@aquigorka.com
name = Gorka
[push]
default = simple
[color]
ui = true
[diff]
tool = vimdiff
[merge]
tool = vim
[core]
trustctime = false
excludesfile = ~/.gitignore.global
editor = /opt/homebrew/bin/vim
[alias]
clag = log --decorate --oneline --all --graph
clog = log --decorate --oneline --graph
fetchus = !git fetch && git status
lg = log --graph --date-order --abbrev-commit --decorate --date=relative --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
d = difftool -t vimdiff
commend = commit --amend --no-edit
plis = push --force-with-lease
pr-clean = "!git checkout master ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
[include]
path = ~/.gitconfig.local