Updated git configuration

Moved to .config/git
Added git-credentials to be encrypted
This commit is contained in:
Ben Vincent 2023-05-07 16:11:34 +10:00
parent 02bc40e88e
commit e650e55b49
4 changed files with 64 additions and 63 deletions

61
.config/git/gitconfig Normal file
View File

@ -0,0 +1,61 @@
# vim: set sw=2 sts=2 ts=2 noexpandtab :
[color]
ui = auto
branch = auto
diff = auto
grep = auto
interactive = auto
status = auto
[user]
email = ben@unkin.net
name = Ben Vincent
[core]
autocrlf = false
excludesfile = ~/.config/git/global_ignore
whitespace = blank-at-eol,blank-at-eof,space-before-tab
[init]
defaultBranch = master
[push]
default = simple
[rerere]
enabled = true
autoupdate = true
[rebase]
# Automatically stash before a rebase and unstash afterwards.
autoStash = true
[commit]
# Show diff when preparing commit message
verbose = true
template = ~/.config/git/gitmessage
###
### Github specific
###
[github]
user = neoloc
# read from given uri
# push to writable one
# http://bit.ly/g9c9Y2
#
[url "http://github.com/"]
insteadOf = "gh:"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "gh:"
[credential]
helper = store
[pack]
threads = 2

View File

@ -1,7 +1,7 @@
# vi:ft=gitcommit:tw=72:sw=2:ts=2:expandtab:spell
# If applied, this commit will...
# Why is this change needed?
# How does it address the issue?
# Provide links to any relevant tickets, articles or other resources
# vi:ft=gitcommit:tw=72:sw=2:ts=2:expandtab:spell

View File

@ -2,4 +2,4 @@
.ssh/id_rsa.pub
.ssh/config
.ssh/config.d/*
.git-credentials
.config/git/git-credentials

View File

@ -1,61 +0,0 @@
# vim: set sw=2 sts=2 ts=2 noexpandtab :
[color]
ui = auto
branch = auto
diff = auto
grep = auto
interactive = auto
status = auto
[user]
email = ben@unkin.net
name = Ben Vincent
[core]
autocrlf = false
excludesfile = ~/.config/git/global_ignore
whitespace = blank-at-eol,blank-at-eof,space-before-tab
[init]
defaultBranch = master
[push]
default = simple
[rerere]
enabled = true
autoupdate = true
[rebase]
# Automatically stash before a rebase and unstash afterwards.
autoStash = true
[commit]
# Show diff when preparing commit message
verbose = true
template = ~/.config/git/gitmessage
###
### Github specific
###
[github]
user = neoloc
# read from given uri
# push to writable one
# http://bit.ly/g9c9Y2
#
[url "http://github.com/"]
insteadOf = "gh:"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "gh:"
[credential]
helper = store
[pack]
threads = 2

1
.gitconfig Symbolic link
View File

@ -0,0 +1 @@
/home/ben/.config/git/gitconfig