diff --git a/git/config b/git/config new file mode 100644 index 0000000..46f6dc3 --- /dev/null +++ b/git/config @@ -0,0 +1,116 @@ +[user] + email = ayushdumasia00@gmail.com + name = Ayush Dumasia + +[core] + editor = vim + compression = 9 + whitespace = error + preloadindex = true + +[advice] + addEmptyPathspec = false + pushNonFastForward = false + statusHints = true + +[url "git@github.com:ad1822/"] + insteadOf = "ad:" + +[url "git@github.com:"] + insteadOf = "gh:" + +[init] + defaultBranch = dev + +[diff] + context = 3 + renames = copies + interHunkContext = 10 + +# [pager] +# diff = diff-so-fancy | $PAGER + +# [diff-so-fancy] +# markEmptyLines = true + +[color "diff"] + meta = black bold + fraq = magenta + context = white + whitespace = yellow reverse + old = red + +[interactive] + diffFilter = diff-so-fancy --patch + singleKey = true + +[commit] + gpgSign = false + template = ~/.config/git/template + +[push] + autoSetupRemote = true + default = current + followTags = true + gpgSign = false + +[pull] + default = current + rebase = true + +[rebase] + autoStash = true + missingCommitsCheck = warn + +[submodule] + fetchJobs = 16 + +[color "blame"] + highlightRecent = black bold,1 year ago,white,1 month ago,default,7 days ago,blue + +[log] + abbrevCommit = true + graphColors = blue,yellow,cyan,magenta,green,red + +[blame] + coloring = highlightRecent + date = relative + +[status] + branch = true + short = true + showStash = true + showUntrackedFiles = all + +[color "branch"] + current = magenta + local = default + remote = yellow + upstream = green + plain = blue + +[alias] + st = status + ss = status -s + ci = commit + co = checkout + br = branch -a + aa = add -A + ap = add --patch + cdf = clean -df + + lo = log --oneline + l = log --all --graph --decorate --oneline --abbrev-commit --date=short + r = remote + conf = config --global --edit + df = diff + structure = log --oneline --simplify-by-decoration --graph --all + slog = log --pretty=format:'%C(auto)%h %C(red)%as %C(blue)%aN%C(auto)%d%C(green) %s' + s5 = slog -5 --graph + s10 = slog -10 + +# [gpg] +# format = opengpg + +[gpg "ssh"] + program = ssh-keygen diff --git a/git/ignore b/git/ignore new file mode 100644 index 0000000..a40fcf1 --- /dev/null +++ b/git/ignore @@ -0,0 +1,16 @@ +# Python specific +.mypy_cache/ +.pytest_cache/ +__pycache__/ +.hypothesis/ +.ruff_cache/ +.ropeproject/ + +# Rust specific +target/ + +node_modules/ + +# Zig specific +.zig-cache/ +zig-out/ diff --git a/git/template b/git/template new file mode 100644 index 0000000..27840d4 --- /dev/null +++ b/git/template @@ -0,0 +1,34 @@ +# feat: โœจ +# feat: ๐Ÿ” +# feat: ๐Ÿ”— +# feat: ๐Ÿ”’ + +# fix: ๐Ÿ› +# fix: ๐Ÿž +# fix: ๐Ÿฉน +# fix: ๐Ÿš‘๏ธ + +# style: ๐Ÿ’… +# style: ๐ŸŽจ +# style: ๐Ÿ’„ + +# ci: ๐ŸฆŠ +# ci: ๐Ÿ“ฆ + +# deploy: ๐Ÿš€ +# deploy: ๐Ÿ“ฆ + +# chore: ๐Ÿงน +# chore: ๐Ÿ”ง +# chore: โš™๏ธ +# docs: ๐Ÿ“œ + +# refactor: ๐Ÿ”จ +# perf: ๐Ÿš€ + +# test: ๐Ÿšฆ +# debug: ๐Ÿงช + +# BREAKING CHANGE: ๐Ÿšจ +# BREAKING CHANGE: ๐Ÿ’ฅ +# BREAKING CHANGE: ๐Ÿ’ฃ