With Computer/Git, GitHub

[git] git add error : adding files failed

s:tardust 2020. 3. 3. 10:22
$ git add .
error: open("업무관련/~$2020-02-28 - 파일명"): Permission denied
error: unable to index file '업무관련/~$2020-02-28 - 파일명'
fatal: adding files failed

폴더를 새로 만들어 기존에 commit되어 push된 파일을 옮겨두었더니 위와같은 오류 발생

.git ignore / 브랜치 사용에 능숙했다면 좀 달라질 수 있겠지만 아직까지는 모르니까

다음의 방법으로 해결함

 

git add --ignore-errors .

 

 

[ 참고 ] https://stackoverflow.com/questions/356323/cant-add-all-files-to-git-due-to-permissions
반응형