GIT #GIT명령어
-
GIT 상황별 명령어 정리Developer/git 2021. 1. 27. 23:23
untracked 파일 변경사항 되돌리기 = modified file( not add to staging )을 unmodified file 로 되돌리기 git checkout sample.txt git checkout . ## working directory 에서 수정한 모든 파일을 현재 버전으로 되돌리기 파일 스테이징 취소 = git add 로 staging area 에 등록된 변경사항 삭제 = 언스테이징 git reset sample.txt git reset . ## 모든 add 변경사항 되돌리기 커밋한 파일 변경사항 되돌리기 git reset 4baf97e ## 커밋 취소. add(index) 취소 git reset --soft 4baf97e ## 커밋 취소 git reset --hard 4baf9..