2021-03-04 Git을 사용하면서 알게되는 명령어 정리 add 취소 git reset HEAD [file] file 을 add 에서 취소. (뒤에 파일명 없으면 전체 add를 취소한다.) commit 취소 git reset HEAD^ commit 취소하고 해당 파일들 unstaged 상태로 working directory에 보존. git reset --hard HEAD^ commit 취소하고 해당 파일들 unstaged 상태로 working directory에서 삭제. commit 실수했을 때(commit message 변경) git commit --amend 바로 전 commit 수정.(vi 창 뜸) 이후 git push -f [remote] [branch] remote branch에 강제로 pu..