diff --git a/Home.md b/Home.md index c5cf0c4..15d1efe 100644 --- a/Home.md +++ b/Home.md @@ -9,7 +9,7 @@ A `dotfiles` alias can then be added to your respective terminalrc (e.g. `.bashr ``` git clone --bare git@github.com:eneller/.dotfiles.git $HOME/.dotfiles ``` -> The next steps are not required if you don't want to track changes made to your dotfiles on this machine. + 2. Append the following alias to your terminalrc ``` alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' @@ -18,6 +18,10 @@ alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' ``` dotfiles checkout ``` +3. Configure git to hide untracked files for this repo +``` +dotfiles config --local status.showUntrackedFiles no +``` ## Initial setup 1. Initialize a bare git repository in your home directory using ``` @@ -27,11 +31,7 @@ git init --bare $HOME/.dotfiles ``` alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' ``` -3. Use the alias to configure git to hide untracked files for this repo -``` -dotfiles config --local status.showUntrackedFiles no -``` -4. Use git as you would normally to track your dotfiles, only using e.g. `dotfiles add` instead of `git add` +3. Use git as you would normally to track your dotfiles, only using e.g. `dotfiles add` instead of `git add` ## Versioning Use `git tag` to mark specific commits for later checkout. \ No newline at end of file