You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
git 저장소에 포함되지 않는 파일들을 지우고 맨 처음 clone 했을 때와 같이 깨끗했으면 하는 상황이 있을 수도 있습니다. 예를 들어, buildconf 같은 프로그램이 수많은 파일들을 생성하게 되는데 이러한 것들을 제거하고 싶을 때 말이죠. 이때 사용할 수 있는 명령은 아래와 같습니다.
get clean -dfx
기본적으로 파일만 지우는데 'd'는 디렉토리까지 지우라는 옵션입니다.
'f'는 --force의 의미입니다.
'x' 옵션이 없으면 .gitignore 파일에 포함된 파일은 지우지 않는데 이 파일들도 지우라는 의미입니다. 일반적으로 *.o 같은 빌드 중간 생성물들이 되겠지요.