feat: Add git config and shell aliases
This commit is contained in:
parent
50e1420ee4
commit
ccd14d8dd2
4 changed files with 105 additions and 3 deletions
8
git/commit-template.txt
Normal file
8
git/commit-template.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# feat:
|
||||
# fix:
|
||||
# chore:
|
||||
# docs:
|
||||
# style:
|
||||
# refactor:
|
||||
# test:
|
||||
# ci:
|
||||
75
git/config
Normal file
75
git/config
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
[user]
|
||||
name = "Martin Larsson"
|
||||
|
||||
[core]
|
||||
compression = 9
|
||||
whitespace = error
|
||||
preloadindex = true
|
||||
|
||||
[status]
|
||||
branch = true
|
||||
showStash = true
|
||||
showUntrackedFiles = all
|
||||
|
||||
[diff]
|
||||
context = 3
|
||||
renames = copies
|
||||
interHunkContext = 10
|
||||
|
||||
[pager]
|
||||
diff = diff-so-fancy | $PAGER
|
||||
|
||||
[diff-so-fancy]
|
||||
markEmptyLines = fales
|
||||
|
||||
[interactive]
|
||||
singleKey = true
|
||||
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
default = current
|
||||
followTags = true
|
||||
|
||||
[pull]
|
||||
default = current
|
||||
rebase = true
|
||||
|
||||
[rebase]
|
||||
autoStash = true
|
||||
missingCommitsCheck = true
|
||||
|
||||
[log]
|
||||
abbrevCommit = true
|
||||
graphColors = blue,yellow,cyan,magenta,green,red
|
||||
|
||||
[branch]
|
||||
sort = -committerdate
|
||||
|
||||
[tag]
|
||||
sort = -taggerdate
|
||||
|
||||
[color "diff"]
|
||||
meta = black bold
|
||||
frag = magenta
|
||||
context = white
|
||||
whitespace = yellow reverse
|
||||
old = red
|
||||
|
||||
[color "decorate"]
|
||||
HEAD = red
|
||||
branch = blue
|
||||
tag = yellow
|
||||
remoteBranch = magenta
|
||||
|
||||
[color "branch"]
|
||||
current = magenta
|
||||
local = default
|
||||
remote = yellow
|
||||
upstream = green
|
||||
plain = blue
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = "gh:"
|
||||
|
||||
[url "git@gitlabs.com:"]
|
||||
insteadOf = "gl:"
|
||||
Loading…
Add table
Add a link
Reference in a new issue