|
| 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:" |
0 commit comments