You need to run this command from the top level of the working tree

I am trying to install utilsnips .

When I type:

cd ~/.vim/ git submodule add https://github.com/SirVer/ultisnips bundle/ultisnips 

I get this message:

 You need to run this command from the toplevel of the working tree. 

Why? How can i avoid this?

+7
vim
source share
2 answers

Your .vim directory may not be git . To make it a git directory simply:

 git init 

Then you can run:

 git submodule add https://github.com/SirVer/ultisnips bundle/ultisnips 
+6
source share

Perhaps you are using a command from a subdirectory. Make sure you are in the directory at the same level as the .git directory.

+1
source share

All Articles