Updated Home (markdown)
12
Home.md
12
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
|
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
|
2. Append the following alias to your terminalrc
|
||||||
```
|
```
|
||||||
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
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
|
dotfiles checkout
|
||||||
```
|
```
|
||||||
|
3. Configure git to hide untracked files for this repo
|
||||||
|
```
|
||||||
|
dotfiles config --local status.showUntrackedFiles no
|
||||||
|
```
|
||||||
## Initial setup
|
## Initial setup
|
||||||
1. Initialize a bare git repository in your home directory using
|
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'
|
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
```
|
```
|
||||||
3. Use the alias to configure git to hide untracked files for this repo
|
3. Use git as you would normally to track your dotfiles, only using e.g. `dotfiles add` instead of `git add`
|
||||||
```
|
|
||||||
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`
|
|
||||||
|
|
||||||
## Versioning
|
## Versioning
|
||||||
Use `git tag` to mark specific commits for later checkout.
|
Use `git tag` to mark specific commits for later checkout.
|
||||||
Reference in New Issue
Block a user