Git subtree add doesn't accept pathspec

I am trying to add a vim plugin to my repo settings as a git subtree. No matter where I try to pull the subtree, git responds witherror: pathspec

I am using the below command in the repos root directory:

git subtree add --prefix .vim/bundle/powerline powerline master --squash

      

which leads to the conclusion:

git fetch powerline master
From git://github.com/Lokaltog/powerline
 * branch            master     -> FETCH_HEAD
error: pathspec '.vim/bundle/powerline' did not match any file(s) known to git.

      

I am using git version 2.0.3

+3


source to share


1 answer


I had exactly the same problem, it turned out to be "."

 git subtree add --prefix ./cs/ControlLibrary/ ControlLibrary master --squash

      

Failure:

error: pathspec './cs/ControlLibrary' did not match any file(s) known to git

      



but

git subtree add --prefix cs/ControlLibrary/ ControlLibrary master --squash

      

worked great :)

I am on Windows using ConEmu, not sure if that mattered

+5


source







All Articles