From fea82c687c5c9aaf1ca5b16ccc2c813f6f71999f Mon Sep 17 00:00:00 2001 From: Darshan Patel Date: Sat, 14 Sep 2019 17:50:44 -0700 Subject: [PATCH] Update README to clone submodule so that it tracks the master branch and ignores dirty commits --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5faf3f3..c37557d 100644 --- a/README.md +++ b/README.md @@ -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: