I am reorganizing my dotfiles and have the following directory structure:
dotfiles
├── .vim
│ ├── colors/
│ ├── ftplugin/
│ ├── pack/
│ │ └── my_plugins/
│ │ ├── opt/
│ │ │ ├── nerdtree/
│ │ │ │ ├── .git
│ │ │ └── vimwiki/
│ │ │ ├── .git
│ │ └── start/
│ │ ├── fugitive/
│ │ │ ├── .git
│ │ ├── syntastic/
│ │ │ ├── .git
│ │ ├── vimade/
│ │ │ ├── .git
│ │ └── vim-css-color/
│ │ ├── .git
│ ├── README.md
│ └── vimrc
There are six directories which are github repos and that have already been cloned to their directories.
I want to now make the entire dotfiles directory version controlled.
How do I add the six .../.git
repos as submodules to the top level repo, without having to re-clone the packages.
Note that here, a similar question was asked, but the instructions given are unclear. What I need is the step-by-step solution to add the entire .vim directory to the top-level repo.