DOTFILES=$HOME/git/martinus__dotfiles3
alias dotfiles="GIT_WORK_TREE=$HOME GIT_DIR=$DOTFILES"
alias dgit="dotfiles git"
dgit init --bare
dgit config status.showUntrackedFiles no
dgit config user.name "Martin Leitner-Ankerl"
dgit config user.email "[email protected]"
Sources
- https://github.com/Siilwyn/my-dotfiles/tree/master/.my-dotfiles
- https://www.atlassian.com/git/tutorials/dotfiles
- https://marcel.is/managing-dotfiles-with-git-bare-repo/
- https://www.ackama.com/what-we-think/the-best-way-to-store-your-dotfiles-a-bare-git-repository-explained/
- https://dev.to/bowmanjd/store-home-directory-config-files-dotfiles-in-git-using-bash-zsh-or-powershell-the-bare-repo-approach-35l3
- https://fwuensche.medium.com/how-to-manage-your-dotfiles-with-git-f7aeed8adf8b
- https://harfangk.github.io/2016/09/18/manage-dotfiles-with-a-git-bare-repository.html