Git

commit 되지 않은 변경 사항 취소

dm.kim 2022. 6. 20. 09:36

로컬에서 commit 되지 않은 변경 사항을 전부 취소하고 싶을 때 사용하는 명령어

 

git reset //staged 파일들 unstage

git checkout . //모든 변경 사항 취소

git clean -fdx //추적할 수 없는 모든 파일 제거

 

참고: https://extbrain.tistory.com/83