2010-05-30 12 views

Odpowiedz

33

Jeśli folder jest górny poziom repozytorium git, i rzeczywiście chcesz całkowicie usunąć całą git repo związane z folderu, a następnie po prostu usunąć (ukryty) .git katalog z folderu:

cd foldername 
rm -r .git 

Jeśli folder jest podkatalogu z repozytorium git, a następnie na Gautier metoda jest jeden chcesz:

git rm --cached -r foldername/ 
1

git rm -r foldername/

21

Jeśli chcesz usunąć pliki z git, ale zachować je w systemie plików dodać opcja --cached.

git rm --cached -r foldername/