-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
30 lines (30 loc) · 800 Bytes
/
gitconfig
File metadata and controls
30 lines (30 loc) · 800 Bytes
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
# This is common git config across all my machines
[user]
name = Emerson Knapp
email = emerson.b.knapp@gmail.com
[init]
templatedir=~/.git-template/
defaultBranch = main
[alias]
co = checkout
pushf = push --force-with-lease
dag = log --graph --format='format:%C(yellow)%h%C(reset) %C(blue)\"%an\" <%ae>%C(reset) %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)%n%s' --date-order
[core]
pager = less -F -X
# hooksPath = ~/.git-templates/hooks
[diff]
tool = meld
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[url "git@github.com:"]
insteadOf = git://github.com/
[url "git@github.com:"]
insteadOf = https://github.com/
[url "git@gitlab.com:"]
insteadOf = git://gitlab.com/
[url "git@gitlab.com:"]
insteadOf = https://gitlab.com/
[pull]
ff = only
[hub]
protocol = ssh