1
0
Эх сурвалжийг харах

Add common gitconfig file

Kevin Heinicke 8 сар өмнө
parent
commit
292180ccf0
2 өөрчлөгдсөн 23 нэмэгдсэн , 1 устгасан
  1. 21 0
      gitconfig
  2. 2 1
      install.conf.yaml

+ 21 - 0
gitconfig

@@ -0,0 +1,21 @@
+[init]
+	defaultBranch = main
+[push]
+	autoSetupRemote = true
+[rerere]
+	enabled = true
+[column]
+	ui = auto
+[branch]
+	sort = -committerdate
+[tag]
+	sort = version:refname
+[diff]
+	algorithm = histogram
+	colorMoved = plain
+	mnemonicPrefix = true
+	renames = true
+[fetch]
+	prune = true
+	pruneTags = true
+	all = true

+ 2 - 1
install.conf.yaml

@@ -7,7 +7,7 @@
     - ["mkdir -p ~/.config/nvim/{backup,swap,undo}", Creating nvim backup dirs]
     - ["touch ~/.config/nvim/local.vimrc", Touching local vimrc]
     - ["git config --global core.excludesfile ~/.gitignore_global"]
-    - ["git config --global rerere.enabled true"]
+    - ["git config --global include.path ~/.gitconfig_common"]
 - link:
     ~/.dotfiles: '.'
     ~/.zlogin: zlogin
@@ -26,6 +26,7 @@
         create: true
         path: external/vim-plug/plug.vim
     ~/.gitignore_global: gitignore_global
+    ~/.gitconfig_common: gitconfig
     ~/.taskrc-light: taskrc-light
     ~/.taskrc-dark: taskrc-dark
     ~/.p10k.zsh: p10k.zsh