1
0
Fork 0
mirror of synced 2024-06-21 00:11:10 -04:00

Update README to clone submodule so that it tracks the master branch and ignores dirty commits

This commit is contained in:
Darshan Patel 2019-09-14 17:50:44 -07:00
parent d20984f5ac
commit fea82c687c

View file

@ -39,10 +39,11 @@ If you're using **Git**, you can add Dotbot as a submodule:
```bash
cd ~/.dotfiles # replace with the path to your dotfiles
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 .
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: