Update README to clone submodule so that it tracks the master branch and ignores dirty commits
This commit is contained in:
parent
d20984f5ac
commit
fea82c687c
|
@ -39,10 +39,11 @@ If you're using **Git**, you can add Dotbot as a submodule:
|
||||||
```bash
|
```bash
|
||||||
cd ~/.dotfiles # replace with the path to your dotfiles
|
cd ~/.dotfiles # replace with the path to your dotfiles
|
||||||
git init # initialize repository if needed
|
git init # initialize repository if needed
|
||||||
git submodule add https://github.com/anishathalye/dotbot
|
git submodule add -b master https://github.com/anishathalye/dotbot # Track master branch of dotbot, instead of detaching head
|
||||||
cp dotbot/tools/git-submodule/install .
|
cp dotbot/tools/git-submodule/install .
|
||||||
touch install.conf.yaml
|
touch install.conf.yaml
|
||||||
```
|
```
|
||||||
|
Edit `.gitmodules` and add `ignore = dirty` under the dotbot submodule, to prevent tracking *dirty* commits.
|
||||||
|
|
||||||
If you're using **Mercurial**, you can add Dotbot as a subrepo:
|
If you're using **Mercurial**, you can add Dotbot as a subrepo:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue