Skip to content
Marc Egea i Sala edited this page Jul 28, 2017 · 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 no
git branch --set-upstream my_branch origin/my_branch
Clone this wiki locally