반응형
깃헙폴더삭제
-
파일 및 폴더 삭제Github 2023. 1. 16. 15:45
파일 삭제하기 1. 로컬 디렉토리와 git 저장소에서 모두 삭제 $ git rm index.html $ git commit -m "Delete index.html" $ git push origin +master 2. git에서만 삭제 $ git rm --cached index.html $ git commit -m "Delete index.html" $ git push origin +master 폴더 삭제하기 1. 로컬 디렉토리와 git 저장소에서 모두 삭제 $ git rm -rf 폴더명 $ git commit -m "Delete folder" $ git push origin +master 2. git에서만 삭제 $ git rm --cached -r 폴더명 $ git rm --cached -r src/ $..