Created
November 12, 2012 06:11
-
-
Save tmr111116/4057784 to your computer and use it in GitHub Desktop.
中身は無視したいけどディレクトリ自体は取っておきたいディレクトリに .gitkeep のかわりに入れる .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .gitignore 以外のファイルを全部無視する。 | |
* | |
!.gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tmp ディレクトリ内の .gitkeep だけ git に登録されていて、自動で生成されるファイルが git status 等に出てきて邪魔だなと思ってたんだけど、これがよさそう。(なんか順位低いけど)
http://stackoverflow.com/a/11579945