add 취소
git reset HEAD [file]
commit 취소
git reset HEAD^
commit message 변경
git commit --amend
https://gmlwjd9405.github.io/2018/05/25/git-add-cancle.html
반응형
'CI > git' 카테고리의 다른 글
[git] git history 제거하기 (초기화) (0) | 2020.02.19 |
---|---|
[git] 시작하기 : git hub 레파지토리와 로컬 소스 연동시키기 (0) | 2020.01.12 |
[git] push 오류 : rejected non-fast-forward (0) | 2019.12.19 |
github contribution chart isn't shown up (깃헙 커밋 차트에 내 커밋이 반영되지 않는 이유) (0) | 2019.11.30 |