git add 시 로컬에서 삭제한 폴더나 파일이 반영되지 않는 경우가 있다.
이를 해결하기 위해 다음 명령어를 사용한다.
git add -u [file or .]
추가로, commit 시 -a 옵션을 사용하면 삭제된 폴더, 파일만 반영된다.
git commit -a -m "feat: ..."
'Dev > Git & GitHub' 카테고리의 다른 글
[Git] push한 commit message 수정하기 (0) | 2024.02.21 |
---|---|
[에러 해결] fatal: unable to access ~ : error setting certificate file: C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt (0) | 2024.01.10 |
git rebase & git stash (0) | 2023.05.25 |
GIT pull , merge, commit, add 명령 되돌리기 (0) | 2022.10.24 |
PR (Pull Request) (0) | 2022.08.03 |