본문 바로가기

Tools/GIT

empty 폴더를 커밋하고자 할 때..

git이 기본적으로 비어있는 폴더는 커밋하지 않는것 같다.

방법은 .gitignore 파일을 만들어서 넣어주고 커밋하면 된다넹..


find . -type d -exec sh -c '(cd {} && touch .gitignore)' ';'

git commit -m "additional empty directories."