git restore

· CI\CD/Git
git restore이란? git checkout은 하나의 키워드에 많은 기능이 들어있다. 때문에 checkout의 브랜치와 관련된 기능이 git switch 명령어로 새로 나오게 됐다. git restore 또한 새로 나온 키워드로 git의 파일 조작(특정 커밋으로 되돌리기, Unstaging 시키기 등) 만을 위한 기능을 지원하는 명령어이다. git restore [file name]을 사용해 특정 파일 HEAD Commit으로 복구하기 git restore --source [commit hash] [file name] 사용해 특정 파일 특정 Commit으로 복구하기 git restore --staged [file name] 사용해 Staging Area에 올라간 파일 다시 Unstaging 시키기 ..
Dev.Cho
'git restore' 태그의 글 목록