[git] commit 취소하기

yoonene·2022년 7월 15일
0

git

목록 보기
1/2

commit 목록 확인

git log

commit 취소

  • commit 취소 & unstaged 상태로 변환
git reset --mixed HEAD^

또는

git reset HEAD^
  • commit 취소 & staged 상태로 보존
git reset --soft HEAD^
  • commit 취소 & unstaged 상태 & 워킹 디렉토리에서 삭제
git reset --hard HEAD^
profile
NLP Researcher / Information Retrieval / Search

0개의 댓글