카테고리 없음
[ WSL , Ubuntu] git clone 시 Operation not permitted 에러 발생 시
teang1995
2022. 3. 6. 17:19
반응형
1. What happend?
WSL + ubuntu 환경에서 git clone
명령어 실행 시 아래와 같은 에러 발생
Cloning into '<repo>'...
error: chmod on /mnt/c/Users/Efsta/Code/<repo>/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'
2. How to solve?
How to solve 'Operation not permitted' on cloning repository 를 참조했다. 아래의 두 줄의 명령어면 해결할 수 있다.
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
C:파티션에 권한을 주는 방식으로 해결하였다.
3. Result
잘 된다.