$ git restore --staged Sqldate1019.sql
git을 조작하다 보면 파일을 잘못 add 할 때가 있다. 이때 add된 파일은 Staging Area로 올라가게 되는데, 이를 다시 Unstaged Area로 옮기기 위한 키워드가 바로 git restore --staged 이다. 우리는 git restore --staged [file name] 을 사용해 특정 파일의 add를 취소할 수 있다.
$ git restore --staged Sqldate1019.sql
git을 조작하다 보면 파일을 잘못 add 할 때가 있다. 이때 add된 파일은 Staging Area로 올라가게 되는데, 이를 다시 Unstaged Area로 옮기기 위한 키워드가 바로 git restore --staged 이다. 우리는 git restore --staged [file name] 을 사용해 특정 파일의 add를 취소할 수 있다.