-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig
51 lines (51 loc) · 1.22 KB
/
dot_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
[user]
name = Brendan Almonte
email = [email protected]
[url "[email protected]:"]
insteadOf = https://github.com/
[branch]
autosetuprebase = always
[alias]
co = checkout
st = status
di = diff
dt = difftool
co = checkout
ci = commit
br = branch
sta = stash
pu = pull
last = log -p -n 1
nb = "!sh -c 'git checkout -b \"$1\" -t ${2:-$(git rev-parse --abbrev-ref --symbolic-full-name @\\{u\\})}' -"
rms = "!f(){ git rm --cached \"$1\";rm -r \"$1\";git config -f .gitmodules --remove-section \"submodule.$1\";git config -f .git/config --remove-section \"submodule.$1\";git add .gitmodules; }; f"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
pullall = "!f(){ git pull \"$@\" && git submodule update --init --recursive; }; f"
[apply]
whitespace = nowarn
[color]
diff = auto
status = auto
branch = auto
[github]
user = almonteb
[push]
default = matching
[core]
excludesfile = ~/.gitignore.global
editor = nvim
[http]
sslVerify = true
[diff]
tool = icdiff
[difftool]
prompt = false
[difftool "icdiff"]
cmd = icdiff --line-numbers $LOCAL $REMOTE
[merge]
tool = vimdiff
[pull]
rebase = true
[rebase]
autoStash = true
[init]
defaultBranch = main