- Add the following to your powershell-profile
Or this to your
Function Get-GitDotfiles { & git --git-dir=$HOME\.dotfiles --work-tree=$HOME $args } New-Alias -Name dot -Value Get-GitDotfiles -Force -Option AllScope
.bashrc
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
- Clone repo into a bare repository.
git clone https://github.com/MartinAskestad/dotfiles.git --bare $HOME\.dotfiles --recurse-submodules
- Set the flag
showUntrackedFiles
to no on this specific repo
dot config --local status.showUntrackedFiles no
dot checkout
dot submodule init
dot submodule update
To use the new repo,
dot status
dot add vimfiles\vimrc
dot commit -m "Update vimrc'
dot push
To add a submodule
dot submodule add --depth 1 <remote_url> <destination_folder>
dot commit -m "Added submodule to project"
dot push
dot submodule update --init --recursive
dot submodule deinit <submodule>
dot rm <submodule>