# Initial clone git submodule init git submodule update # Adding git submodule add --name name https://example.com/foo.git .emacs.d/packages/name # Moving git mv # Removing git rm edit .git/config rm -rf .git/modules/ # Updating git submodule foreach git fetch