Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

vim

I'm 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 it?

like image 803
Katsu Avatar asked Sep 22 '13 10:09

Katsu


1 Answers

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

git init

Then you can run:

git submodule add https://github.com/SirVer/ultisnips bundle/ultisnips
like image 153
cforbish Avatar answered Sep 27 '22 20:09

cforbish