파일 확장자를 재귀 적으로 제거하려고하는데, 노력하고 있어도 계속 실패합니다. 어떤 아이디어에 감사드립니다.힘내 - 파일 확장명을 재귀 적으로 제거하십시오.
[email protected]:~/hh/hh_sdk/src/uboot_hh$ git rm -r --cached \*.o
fatal: pathspec 'src/uboot_hh/*.o' did not match any files
[email protected]:~/hh/hh_sdk/src/uboot_hh$ sudo git rm -r --cached \*.o
fatal: pathspec 'src/uboot_hh/*.o' did not match any files
[email protected]:~/hh/hh_sdk/src/uboot_hh$ sudo git rm -r --cached *.o
fatal: pathspec 'src/uboot_hh/*.o' did not match any files
[email protected]:~/hh/hh_sdk/src/uboot_hh$ sudo find . -name *.o -exec git rm -r --cached {} \;
fatal: pathspec 'src/uboot_hh/lib_arm/_divsi3.o' did not match any files
fatal: pathspec 'src/uboot_hh/lib_arm/cache.o' did not match any files
fatal: pathspec 'src/uboot_hh/lib_arm/_udivsi3.o' did not match any files
fatal: pathspec 'src/uboot_hh/lib_arm/_umodsi3.o' did not match any files
실제로 힘내 추적하여'.o' 파일 중 하나는 위치 : 파일이 더 이상 파일 시스템에없는 존재 않을 경우
은 또한 당신은
git rm
에--force
옵션 (-f
)을 통과해야합니까? –