-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
39 lines (39 loc) · 843 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
28
29
30
31
32
33
34
35
36
37
38
39
[alias]
a = !git add -A && git status
c = commit --edit --message
ca = commit --amend
d = diff
dc = diff --cached
default-branch-name = !git remote show origin | awk '/HEAD branch/ {print $NF}'
pl = pull
ps = push
plre = pull --rebase
s = switch
sm = !git switch `git default-branch-name`
st = status
up = !git fetch origin && git rebase origin/`git default-branch-name`
[color]
ui = auto
[core]
attributesfile = ~/.configuration/gitattributes
excludesfile = ~/.configuration/gitignore
pager = less -r
[diff]
compactionHeuristic = true
[fetch]
prune = true
[init]
defaultBranch = main
[merge]
ff = only
[pull]
ff = only
[push]
default = nothing
[user]
name = Tristan Dunn
email = [email protected]
[includeIf "gitdir:~/Sites/"]
path = ~/Sites/gitconfig.inc
[help]
autocorrect = prompt