Skip to content

codeincontext/dotfiles

Repository files navigation

dotfiles

Just my dotfiles

Bare git repo approach inspired by skx/dotfiles and this Atlassian post

Cloning dotfiles and the install scripts

This repository should be cloned/used as a "bare" repository, which lets git track files in your home directory

Step one: Clone as bare repo

git clone --bare git@github.com:skattyadz/dotfiles.git ~/dotfiles.git

Step two: Set up an alias

alias dotfiles="git --git-dir=$HOME/dotfiles.git --work-tree=$HOME"

Step three: Tell git to ignore untracked files

dotfiles config --local status.showUntrackedFiles no

Step three: See which files will be over-written in your current home directory:

dotfiles status -s -uno

Step four: When you're happy to replace them, do the necessary:

dotfiles checkout -b original_files -f
dotfiles commit -a -m 'original files'
dotfiles checkout master

Now you need to run the install scripts

Pulling from github and running install scripts

Do this periodically

dotfiles pull
cd ~/dotfiles-scripts
./install

Adding a file to the repo

dotfiles add ~/path/to/my/file
dotfiles push origin master

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published