Programming/Git
git 오류 해결 Filename too long오류
노루다자
2022. 4. 3. 20:41
# 윈도우에서 Filename too long 에러가 발생
<원인> 윈도우 API가 파일경로 길이를 260자로 제한해서
<해결방법> git 명령어를 입력한다. => git config --system core.longpaths true
# 추가적인 트러블 슈팅 -> permission denied오류
error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied
<원인> git config --system core.longpaths true에서 --system명령은 권한이 필요한 것 같음
<해결방법> git bash를 관리자 권한으로 실행한다.
- Git Bash에서 git config --system core.longpaths true을 입력
( 만약 오류가 뜨면 아래 코드를 입력해보고 다시 입력 )
- git config --system --unset credential.helper을 입력