Inspired by ThePrimeagen's dotfiles and by this blog post.
cd ~
git clone --recurse-submodules https://github.com/micangl/.dotfiles
To pull the current repository, and all the submodules, execute
git pull --recurse-submodules
Changes to a submodule must be added and committed both inside the submodule, and in the base repository (.dotfiles
in this case).
To push eventual changes, run
git push --recurse-submodules=on-demand
git submodule add <url_to_the_submodule> <path_to_the_submodule>
cd <path_to_the_submodule>
git checkout master
Go back to the main .dotfiles
directory and execute
git config -f .gitmodules submodule.<name>.branch master
git config -f .gitmodules submodule.<name>.update merge
Running git status
will show that some are unstaged; add, commit and push them.
Remember to update the install
script.