Git 저장소 하위 폴더 불필요한 파일 한번에 삭제하기
2023. 5. 13. 14:48ㆍtrouble shoot
Tucker Go 프로그래밍 실습중 exe 파일을 불필요하게 push 해버렸다.
한번에 삭제할 방법을 구글링 해서 찾은 결과를 남겨보자
Administrator@DESKTOP-JUSC5N8 MINGW64 ~/workspace/tucker_go__training (main)
$ find ./ -iname "*.exe"
./ex4.1/ex4.1.exe
...
./hello2/hello2.exe
Administrator@DESKTOP-JUSC5N8 MINGW64 ~/workspace/tucker_go__training (main)
$ find ./ -iname "*.exe" -exec rm {} \;
참고자료
How to recursively remove all .exe files from all the subdirectories of the current directory?
I have a USB containing important files. However it is infiltrated with some unwanted .exe files (probably virsuses) in each subfolder. Since I am on a Linux machine, the exe files won't affect me.
superuser.com
'trouble shoot' 카테고리의 다른 글
[Github] RSA SSH host key 업데이트 (1) | 2023.05.12 |
---|---|
Runesmith.top 가짜 광고 제거 방법 (2) | 2023.05.03 |
[git] 여러 계정을 한 컴퓨터에서 사용시 계정 혼선 발생시 해결 (0) | 2023.02.17 |
[git] 작업전에는 git pull 하고 최신 상태에서 작업해야.. (1) | 2023.02.16 |
[CI] 빌드 장애 조치 - 윈도우에서 잠김 파일 강제 삭제 (0) | 2023.02.16 |