$ git add .
warning: in the working copy of 'package-lock.json', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'package.json', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'src/App.tsx', LF will be replaced by CRLF the next time Git touches it
18 files changed, 408 insertions(+), 40 deletions(-)
create mode 100644 src/components/books/BookItem.tsx
create mode 100644 src/components/books/BooksEmpty.tsx
create mode 100644 src/components/books/BooksFIiter.tsx
create mode 100644 src/components/books/BooksList.tsx
create mode 100644 src/components/books/BooksViewSwitcher.tsx
create mode 100644 src/components/books/Pagination.tsx
create mode 100644 src/pages/Books.tsx
create mode 100644 src/pages/Login.tsx
create mode 100644 src/pages/ResetPassword.tsx
create mode 100644 src/store/authStore.ts
가장 최근 커밋이 취소되며 작업 내용은 그대로 작업 디렉토리에 남는다.
git reset --soft HEAD~1
Staging Area에 있는 파일까지 취소하려면 --mixed 옵션을 사용
git reset --mixed HEAD~1
커밋과 함께 작업 디렉토리의 변경 사항까지 되돌리고 싶다면 --hard를 사용
git reset --hard HEAD~1