2015年3月23日 星期一

[vim] How to remove and add submodule

# Download package from github

git clone git@github.com:happy/vimrc.git
cd vimrc

# Clean all file which under bundle/snipmate-snippets

git submodule deinit -f bundle/snipmate-snippets
Cleared directory ‘bundle/snipmate-snippets’

# remove snipmate from submodule

git rm bundle/snipmate-snippets
rm ‘bundle/snipmate-snippets’

# git add submodule under bundle/snipmate-snippets

git submodule add https://github.com/spf13/snipmate-snippets.git bundle/snipmate-snippets

# git update submodule

git submodule update --init (update all submodule)
git submodule update --init (update specific submodule)


Reference:

Related Posts:

0 意見:

張貼留言