-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
63 lines (63 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This is Git's per-user configuration file.
[alias]
a = add
st = status
co = checkout
cob = checkout -b
com = "!f(){ git checkout $(git main-branch) $@;}; f"
difft = difftool
dlog = logt
brv = branch -v
prb = pull --rebase
pupu = pull --prune
last = log -1 HEAD
logt = "!f() { GIT_EXTERNAL_DIFF=difft git log -p --ext-diff $@; }; f"
puft = pull --tags -f
prune = fetch --prune
undo = reset --soft HEAD^
rebasem = "!f(){ git rebase -i --autosquash origin/$(git main-branch) --no-verify $@;}; f"
stash-all = stash save --include-untracked
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
main-branch = !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4
[gpg]
program = gpg
[help]
autocorrect = 20
[core]
pager = delta --dark --syntax-theme='Nord'
[interactive]
diffFilter = delta --color-only
[credential]
helper = osxkeychain
helper = /usr/local/share/gcm-core/git-credential-manager
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[pull]
rebase = true
[merge]
ff = only
conflictstyle = diff3
[push]
default = simple
followTags = true
[status]
showUntrackedFiles = all
[transfer]
fsckobjects = true
[includeif "gitdir:~/git/personal/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/git/work/"]
path = ~/.gitconfig-work
[init]
defaultBranch = main
[user]
name = Denis Brækhus
email = [email protected]
[credential "https://dev.azure.com"]
useHttpPath = true