* 상황
실수로 원하지 않는 파일을 git add해서 넣은 경우
* 해결방법
git reset
* Reference
https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
[Git] git add 취소하기, git commit 취소하기, git push 취소하기 - Heee's Development Blog
Step by step goes a long way.
gmlwjd9405.github.io
https://devbirdfeet.tistory.com/158
Git(31) git add 취소하기 (staging 취소)
git add 명령어로 staging 한 파일들을 다시 되돌리려면 git reset 을 사용해준다. Git(31) git add 취소하기 (staging 취소) 앗 ! 실수로 git add . 를 하여 변경한 전체 파일을 staging 했다. 😵💫 당황치 말고 g
devbirdfeet.tistory.com
'Github' 카테고리의 다른 글
| [Github] 다른 컴퓨터에서 생성한 branch 가져오기 (0) | 2023.04.24 |
|---|---|
| git@github.com: Permission denied (publickey). 에러 해결, SSH 키 생성 방법 (0) | 2023.04.08 |
| [Github] 새 레포에 기존 소스코드 추가 (0) | 2022.11.14 |