From 4b6429d804a306f6a5e696b8abf205fcf5a201f7 Mon Sep 17 00:00:00 2001 From: eneller <68303608+eneller@users.noreply.github.com> Date: Thu, 4 Aug 2022 08:30:43 +0200 Subject: [PATCH] Updated Home (markdown) --- Home.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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