git을 사용할때 add를 사용해서 스테이징한 파일을 취소(언스테이징)하고 싶을 때가 있다.
그럴 때는 reset 명령을 사용하면 파일을 언스테이징할 수 있다.
git add index.html
git reset index.html
'Git' 카테고리의 다른 글
Git 파일 추적 삭제 (0) | 2021.11.05 |
---|---|
Trouble Shooting - The following untracked working tree files would be overwritten by ... (0) | 2021.10.12 |
Trouble Shooting - Git push error(fatal:refusing to merge unrelated histories) (0) | 2021.07.20 |
Trouble Shooting - warning: LF will be replaced by CRLF in yarn.lock. (0) | 2021.07.06 |
git amend, reset (0) | 2021.06.25 |