<add/commit한 상태 확인>
git status<add한 내용 취소>
git rm --cached '파일명'<commit한 내용 취소>
git reset HEAD
git reset HEAD '파일명'
git restore --staged '파일명' (해당 파일만 일부 취소)git reset --soft HEAD^
git reset --mixed HEAD^
git reset --hard HEAD^
등등... 다양한 리셋 방식을 사용할 수 있다.
(참고2)[참고1 (add한 내용 취소) : https://www.lainyzine.com/ko/article/how-to-cancle-git-add/]
[참고2 (reset 방법 3가지) : https://blog.naver.com/wishlan/222966170241]
[참고3 (restore, revert, reset) : https://blog.naver.com/worua97/22298367825
'ect > git' 카테고리의 다른 글
[git] Deploy Key SSH (0) | 2024.05.10 |
---|---|
[git] Gi&GitHub 실습 (0) | 2024.05.10 |
[git] 오류 메시지_The requested URL returned error: 403 (0) | 2023.03.10 |
[git] Github 협업하기1 (0) | 2023.03.10 |
[git] github 이론 강의2 (0) | 2023.02.11 |