-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
49 lines (48 loc) · 1.2 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
[init]
templatedir = ~/.git_template
defaultBranch = main
[push]
default = current
autoSetupRemote = true
[color]
ui = auto
[alias]
branches = for-each-ref --sort=-committerdate --count=10 --format=\"%(color:blue)%(authordate:relative) %(color:green)%(color:bold)%(refname:short) %(color:red)%(authoremail)\" refs/remotes
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
cm = commit -m
cleanup = !git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d
[core]
excludesfile = ~/.gitignore
editor = code
autocrlf = input
whitespace = -trailing-space
[merge]
ff = only
[commit]
template = ~/.gitmessage
[fetch]
prune = true
[rebase]
autosquash = true
[include]
path = ~/.gitconfig.local
[diff]
renames = true
colorMoved = zebra
mnemonicprefix = true
[user]
name = Nick Weiland
email = nickweiland@gmail.com
username = weilandia
[log]
abbrevCommit = true
follow = true
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[credential "https://dev.azure.com"]
useHttpPath = true