일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- cafe24
- SQL개발자
- Foundational
- Your session has been terminated
- 항해99
- Wordpress
- ARIadminer
- AWS
- SSL
- ARI
- AWS Certified Cloud Practitioner
- sqld
- AWS시험
- 보안인증서
- readony
- 항해플러스백엔드
- saltkey
- 항해솔직후기
- 항해플러스
- disabled
- 항해플러스후기
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
반응형