-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
40 lines (40 loc) · 1.11 KB
/
dot_gitconfig.tmpl
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
[alias]
dotfiles = !git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
dot = !git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
[user]
name = {{ .name | quote }}
email = {{ .email | quote }}
[core]
excludesFile = ~/.gitignore_global
[pull]
rebase = true
[alias]
a = add
co = checkout
st = status
sts = status -s
c = commit
cm = commit -m
ca = commit -a
cam = commit -am
unstage = reset HEAD --
df = diff
dfc = diff --cached
ls = log --all --oneline --graph
lg = log --all --graph
la = log --all --graph --pretty=format:\"%C(auto)%h %an: %s %d\"
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
cr = !git --git-dir=$HOME/.config_repo/ --work-tree=$HOME
dotfiles = !git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
dot = !git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME
# https://docs.gitignore.io/use/command-line
ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi"
[init]
defaultBranch = main
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[credential "https://dev.azure.com"]
useHttpPath = true
[log]
date = local