2012-05-11 13 views
5

Prova a cambiare modulo, come descritto nella git bookgit rm -r non funziona in un modulo

$ git rm -r vendor/html-minifier 
$ git submodule add https://github.com/kangax/html-minifier.git vendor/html-minifier 

Ma non riesce con i seguenti

rm 'vendor/html-minifier' 
fatal: git rm: 'vendor/html-minifier': Is a directory 
+0

provare git rm -rf fornitore/html-minifier –

+0

Non ha aiutato. Lo stesso di 'git rm -r vendor/html-minifier' – stereobooster

risposta

5
+0

prova' git rm -r vendor/html-minifier/'. risultato: 'fatale: pathspec 'vendor/html-minifier /' non corrisponde a nessun file' – stereobooster

+0

try:' git rm --cached -r dirname', source: [link] (http://serverfault.com/questions/256421/cant-git-rm-a-directory) –

+0

Grazie funziona. Non rimuove il contenuto effettivo della cartella, ma può essere fatto con 'rm' – stereobooster

Problemi correlati