Skip to content

Commit 0de39d3

Browse files
committed
feat: ✨ Add git config
1 parent 95de9cd commit 0de39d3

File tree

3 files changed

+174
-0
lines changed

3 files changed

+174
-0
lines changed

dot_config/git/config

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
[user]
2+
name = Diana Ward
3+
email = diana.ward535@proton.me
4+
# signingkey = add_key
5+
6+
[commit]
7+
gpgSign = false
8+
template = ~/.config/git/template
9+
verbose = true # add more context to commit messages
10+
11+
[core]
12+
autocrlf = input # keep newlines as in input
13+
compression = 9 # trade cpu for network
14+
fsync = none
15+
whitespace = error # threat incorrect whitespace as errors
16+
preloadindex = true # preload index for faster status
17+
18+
[advice] # disable advices
19+
addEmptyPathspec = false
20+
pushNonFastForward = false
21+
statusHints = false
22+
23+
[blame]
24+
coloring = highlightRecent
25+
date = relative
26+
27+
[diff]
28+
context = 3 # less context in diffs
29+
renames = copies # detect copies as renames in diffs
30+
interHunkContext = 10 # merge near hunks in diffs
31+
32+
[init]
33+
defaultBranch = dev
34+
35+
[log]
36+
abbrevCommit = true # short commits
37+
graphColors = blue,yellow,cyan,magenta,green,red
38+
39+
[status]
40+
branch = true
41+
short = true
42+
showStash = true
43+
showUntrackedFiles = all # show individual untracked files
44+
45+
[pager]
46+
branch = false # no need to use pager for git branch
47+
tag = false
48+
diff = diff-so-fancy | $PAGER # diff-so-fancy as diff pager
49+
50+
[push]
51+
autoSetupRemote = true # easier to push new branches
52+
default = current # push only current branch by default
53+
followTags = true # push also tags
54+
gpgSign = false # my remotes doesn't support sign pushes
55+
56+
[pull]
57+
rebase = true
58+
default = current
59+
60+
[submodule]
61+
fetchJobs = 16
62+
63+
[rebase]
64+
autoStash = true
65+
missingCommitsCheck = warn # warn if rebasing with missing commits
66+
67+
[pack]
68+
threads = 0 # use all available threads
69+
windowMemory = 1g # use 1g of memory for pack window
70+
packSizeLimit = 1g # max size of a packfile
71+
72+
# Integrity
73+
[transfer]
74+
fsckObjects = true
75+
76+
[receive]
77+
fsckObjects = true
78+
79+
[fetch]
80+
fsckObjects = true
81+
82+
[branch]
83+
sort = -committerdate
84+
85+
[tag]
86+
sort = -taggerdate
87+
88+
# Colors
89+
[color "blame"]
90+
highlightRecent = black bold,1 year ago,white,1 month ago,default,7 days ago,blue
91+
92+
[color "branch"]
93+
current = magenta
94+
local = default
95+
remote = yellow
96+
upstream = green
97+
plain = blue
98+
99+
[color "diff"]
100+
meta = black bold
101+
frag = magenta
102+
context = white
103+
whitespace = yellow reverse
104+
old = red
105+
106+
[color.decorate]
107+
HEAD = red
108+
branch = blue
109+
tag = yellow
110+
remoteBranch = magenta
111+
112+
[interactive]
113+
diffFilter = diff-so-fancy --patch
114+
singlekey = true
115+
116+
# Third-party: diff-so-fancy
117+
[diff-so-fancy]
118+
markEmptyLines = false
119+
120+
# URL shortcuts
121+
[url "git@github.com:"]
122+
insteadOf = "gh:"
123+
124+
[url "git@github.com:dianaw353/"]
125+
insteadOf = "dw:"

dot_config/git/ignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Python specific
2+
.venv/
3+
.mypy_cache/
4+
.pytest_cache/
5+
__pycache__/
6+
.hypothesis/
7+
.ruff_cache/
8+
.ropeproject/
9+
10+
# Rust specific
11+
target/
12+
13+
# Zig specific
14+
.zig-cache/
15+
zig-out/

dot_config/git/template

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# feat: ✨
2+
# feat: 🔍
3+
# feat: 🔗
4+
# feat: 🔒
5+
6+
# fix: 🐛
7+
# fix: 🐞
8+
# fix: 🩹
9+
# fix: 🚑️
10+
11+
# style: 💅
12+
# style: 🎨
13+
# style: 💄
14+
15+
# ci: 🦊
16+
# ci: 📦
17+
18+
# deploy: 🚀
19+
# deploy: 📦
20+
21+
# chore: 🧹
22+
# chore: 🔧
23+
# chore: ⚙️
24+
# docs: 📜
25+
26+
# refactor: 🔨
27+
# perf: 🚀
28+
29+
# test: 🚦
30+
# debug: 🧪
31+
32+
# BREAKING CHANGE: 🚨
33+
# BREAKING CHANGE: 💥
34+
# BREAKING CHANGE: 💣

0 commit comments

Comments
 (0)