일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ARIadminer
- 항해플러스
- Your session has been terminated
- SSL
- disabled
- Foundational
- Wordpress
- 항해99
- ARI
- saltkey
- AWS Certified Cloud Practitioner
- 보안인증서
- cafe24
- AWS
- readony
- AWS시험
Archives
- Today
- Total
WorkaHolic
Git Rm 본문
Remove files from the working tree and from the index
작업 트리 및 색인에서 파일 제거
* 로컬 및 원격저장소 파일 삭제
git rm filename
e.g. git rm index.html
* 원격저장소만 파일 삭제
git rm --cached filename
e.g. git rm --cached index.html
- 옵션 -r : 내부값까지 삭제 (css, img, js는 디렉토리)
e.g. git rm -r --cached css img js index.html
- 삭제 이후, commit과 push까지 해야 github가 변경됨
e.g. git commit -m "file delete"
e.g. git push origin main
반응형