Tool/git
파일 및 디렉토리 삭제: git rm --cached
귀염둥이채원
2019. 3. 11. 11:33
# 디렉토리 삭제
$ git rm -r --cached {directory name}
* git rm --> 원격 저장소와 로컬 저장소에 있는 파일을 삭제한다.
* git rm --cached --> 원격 저장소에 있는 파일을 삭제한다. 로컬 저장소에 있는 파일은 삭제하지 않는다.
# git commit
$ git commit -m "remove {directory name} directory"
# git push
$ git push origin master