dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
files/windows/gitconfig.txt (2344B)
1[user]
2 name =
3 email =
4 signingkey =
5
6[github]
7 user =
8
9[core]
10 editor = notepad
11 hooksPath = ~/.git-hooks
12 autocrlf = true
13 pager = delta
14 excludesFile = ~/.gitignore_global
15
16[init]
17 defaultBranch = main
18
19[pull]
20 rebase = true
21
22[color]
23 ui = auto
24
25[diff]
26 colorMoved = default
27
28[credential]
29 helper = manager
30
31[safe]
32 directory = *
33
34[commit]
35 gpgsign = true
36[tag]
37 gpgsign = true
38[gpg]
39 format = openpgp
40
41[filter "lfs"]
42 clean = git-lfs clean -- %f
43 smudge = git-lfs smudge -- %f
44 process = git-lfs filter-process
45 required = true
46
47[interactive]
48 diffFilter = delta --color-only
49[delta]
50 navigate = true
51 line-numbers = true
52 theme = Monokai Extended
53[merge]
54 conflictStyle = diff3
55
56[alias]
57 a = add
58 ad = add -A .
59 ai = add -i
60 ap = add -p
61 b = branch
62 bc = branch --show-current
63 bd = branch -D
64 backup = "!CURRENT=$(git branch --show-current) && git stash && git checkout -B backup && git stash apply && git add -A . && git commit -am \"backup\" && git push --force $1 && git checkout $CURRENT && git stash pop && git branch -D backup && :"
65 cfg = config
66 ci = commit -v
67 cam = commit -v -am
68 cia = commit -v -a
69 cmx = log -1 --format=%B
70 co = checkout
71 cp = cherry-pick
72 cpp = "!CURRENT=$(git branch --show-current) && git stash && git checkout -B $2 $3 && git cherry-pick $1 && git push --force $4 && git checkout $CURRENT && git stash pop && :"
73 d = diff
74 df = diff HEAD
75 dx = diff --color-words
76 dc = diff --cached
77 dcx = diff --cached --color-words
78 l = log --graph --decorate --abbrev-commit
79 l1 = log --graph --decorate --abbrev-commit --pretty=oneline --all
80 lf = log -p --follow
81 lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches
82 ll = log --graph --decorate --abbrev-commit -p
83 m = merge
84 ms = merge --squash
85 p = push
86 pf = push --force
87 pl = "!git pull && git fetch -p"
88 pt = push --tag
89 pu = push --set-upstream
90 rb = rebase
91 record = "!f() { (git add -p -- \"$@\" && git commit -v) || git reset; }; f"
92 ro = restore
93 r = reset
94 rs = reset --soft
95 rh = reset --hard
96 rsh = reset --soft HEAD^
97 s = "!git --no-pager status"
98 sm = submodule
99 st = stash
100 std = stash drop
101 sti = stash --keep-index
102 stp = stash pop
103 sync = push --force --mirror
104 t = tag
105 td = "!git tag -d $1 && git push origin :$1 && :"
106 tl = tag -l