
[Error] fatal: not a git repository (or any of the parent directories): .git
2022. 6. 20. 23:05
개발이야기/TEL
fatal: not a git repository (or any of the parent directories): .git 현재 폴더에 git에 대한 정보를 담은 파일이 없기 때문에 발생하는 에러. 1. git init 2. git remote add 연결할레파지토리 주소

[error] The following untracked working tree files would be overwritten by checkout
2022. 5. 3. 01:46
개발이야기/TEL
The following untracked working tree files would be overwritten by checkout 다음 추적되지 않은 작업 트리 파일은 체크아웃 시 덮어쓰여집니다. 1) git clean -d -fx Git clean-d-fx는 Git이 추가되지 않은 파일을 삭제한다는 의미 Git clean 매개변수 -n은 삭제할 파일과 디렉토리를 표시해준다. -x – 무시된 파일 삭제는 Git에서 더 이상 인식하지 않는다. -D — Git의 경로에 추가되지 않은 파일을 삭제한다. — F — 강제 작업 Git clean – n Git clean – df Git clean – f 2) git clean -fd --dry-run git clean -fd 옵션 --dry-run