Updated git configuration
Moved to .config/git Added git-credentials to be encrypted
This commit is contained in:
parent
02bc40e88e
commit
e650e55b49
61
.config/git/gitconfig
Normal file
61
.config/git/gitconfig
Normal 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
|
||||
@ -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
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
.ssh/id_rsa.pub
|
||||
.ssh/config
|
||||
.ssh/config.d/*
|
||||
.git-credentials
|
||||
.config/git/git-credentials
|
||||
|
||||
61
.gitconfig
61
.gitconfig
@ -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
1
.gitconfig
Symbolic link
@ -0,0 +1 @@
|
||||
/home/ben/.config/git/gitconfig
|
||||
Loading…
Reference in New Issue
Block a user