Restore
[1] 작업 중인 파일 상태 되돌리기
1
git restore abc.txt
modified상태인 파일의 변경사항을 마지막 커밋 상태로 되돌린다.
[2] 스테이징 취소하기
1
git restore --staged abc.txt
Staging Area에 있는 특정 파일을modified상태로 되돌린다.- 파일 내용에 영향을 주지 않는다.
1
git restore abc.txt
modified 상태인 파일의 변경사항을 마지막 커밋 상태로 되돌린다.1
git restore --staged abc.txt
Staging Area에 있는 특정 파일을 modified 상태로 되돌린다.