-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
38 lines (38 loc) · 1.05 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
[user]
name = makiton
email = [email protected]
[includeIf "gitdir:~/go/src/github.com/mfkessai/"]
path = .gitconfig-mfkessai
[includeIf "gitdir:~/github.com/bizforwardinc/"]
path = .gitconfig-bizforward
[alias]
st = status
gl = log --oneline --decorate --graph
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
follow-upstream = pull --rebase --ff-only upstream
follow = pull --rebase --ff origin
merge-upstream = pull --no-ff upstream
merge-origin = pull --no-ff origin
openpr = "!f() { hub browse -- `git log --merges --oneline --reverse --ancestry-path $1...master | grep 'Merge pull request #' | head -n 1 | cut -f5 -d' ' | sed -e 's%#%pull/%'`; }; f"
[push]
default = current
[core]
excludesfile = ~/.gitignore
editor = vim
[ghq]
root = ~/workspace
[merge]
tool = gvimdiff
conflictstyle = diff3
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[rebase]
autosquash = true
[url "[email protected]:"]
insteadOf = https://github.com/
[init]
defaultBranch = main
[fetch]
prune = true