👾𝗚𝗶𝘁
git add 취소, git commit 취소/변경하기
안오늘
2021. 6. 25. 22:40
git add 취소
모든 파일을 staging area에 넣은 경우, 다시 staging area에서 빼려면,
git reset HEAD [file] 명령어를 이용한다! file에 파일명을 적으면 된다. 😃
git commit 취소
git reset HEAD^ 를 이용한다.
git commit 변경
git commit –amend 을 이용한다.