Updated Home (markdown)

eneller committed 2022-08-04 08:30:43 +02:00
1 parent a5a881abe6
commit 4b6429d804
1 file changed
+6 -6
+6 -6
@@ -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.