فهرست منبع

Change global gitignore path

Does not work on Windows WSL.
DricomDragon 5 سال پیش
والد
کامیت
ad2247cd58
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      Install/git-custom

+ 3 - 2
Install/git-custom

@@ -8,10 +8,11 @@ git config --global user.name "DricomDragon" ;
 git config --global core.editor "vim" ;
 git config --global push.followTags true
 git config --global diff.tool vimdiff
-git config --global core.excludesfile '~/.gitignore'
+git config --global core.excludesfile '~/.config/git/ignore'
 
 # Copy global gitignore
-cp ./Templates/gitignore ~/.gitignore
+mkdir --parents ~/.config/git/ignore
+cp --update ./Templates/gitignore ~/.config/git/ignore
 
 # Create GitWork
 mkdir ~/GitWork ;