Skip to content

Instantly share code, notes, and snippets.

@tmr111116
Created November 12, 2012 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmr111116/4057784 to your computer and use it in GitHub Desktop.
Save tmr111116/4057784 to your computer and use it in GitHub Desktop.
中身は無視したいけどディレクトリ自体は取っておきたいディレクトリに .gitkeep のかわりに入れる .gitignore
# .gitignore 以外のファイルを全部無視する。
*
!.gitignore
@tmr111116
Copy link
Author

tmp ディレクトリ内の .gitkeep だけ git に登録されていて、自動で生成されるファイルが git status 等に出てきて邪魔だなと思ってたんだけど、これがよさそう。(なんか順位低いけど)
http://stackoverflow.com/a/11579945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment