보관함

git 특정 디렉토리 하에 있는 모든 폴더를 cleanup (submodule 까지)

※ 주의 git clean -x 는 .gitignore 에 있는 파일(.env, 로컬 설정, 빌드 결과 등)까지 지우고, git restore . 는 커밋하지 않은 변경을 모두 되돌린다. 먼저 git clean -n -d -x 로 지워질 파일을 확인할 것.

 

관련 글: git 특정 디렉토리 하에 있는 모든 폴더를 pull (submodule 까지), git cleanup 명령

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

  

  

  

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터가 어떻게 처리되는지 알아보세요.