~/projects
So that git config init.templateDir
can find ./git-template-dir
.
Add the follow content into ~/.gitconfig
.
[include]
path = ~/projects/git--dotfiles/gitconfig
Symbolic links in Windows systems are not reliable, sometimes they work, sometimes they don't.
Thus this method is deprecated in favour of pure git config [include]
.
Run in elevated powershell
New-Item -ItemType SymbolicLink -Path C:\Users\Li6q\.gitconfig -Value .\gitconfig