2022-01-20 TIL

MINBOK·2022년 1월 20일
0

React

목록 보기
4/10
post-thumbnail

Changes not staged for commit:~ 문제 해결

git commit -m ' '을 하니까 갑자기 아래와 같은 문제가 발생했다.

$ git commit -m 'update the page that expose if some errors occur in server'
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   src/components/page404.js
        modified:   src/css/Page404.css

git init 하는 것으로 간단하게 해결되었다.

git init
git add .
git commit -m ''
git push origin

만약 이 방법으로 해결되지 않는다면,
https://dubaiyu.tistory.com/8 이 블로그를 참고하면 좋을 것 같다.

✨참고 - 모달창 만들기
http://yoonbumtae.com/?p=3632

https://ko-de-dev-green.tistory.com/61

0개의 댓글