Skip to content
Marc Egea i Sala edited this page Sep 30, 2020 · 8 revisions

Based on https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/

Create:

git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no

dotfiles remote add origin https://github.com/meis/dotfiles
echo '.dotfiles' >> $HOME/.gitignore
dotfiles add .gitignore
dotfiles commit -m 'Initial config'

Install:

git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles remote add origin [email protected]:meis/dotfiles.git
dotfiles pull origin master
dotfiles config --local status.showUntrackedFiles nodotfiles branch --set-upstream-to=origin/master
Clone this wiki locally