Skip to content

Instantly share code, notes, and snippets.

@ayemos
Created December 13, 2017 11:27
Show Gist options
  • Save ayemos/226d4e4def0cb61086d4b94ca2377ea6 to your computer and use it in GitHub Desktop.
Save ayemos/226d4e4def0cb61086d4b94ca2377ea6 to your computer and use it in GitHub Desktop.
mkdir ignore_tmp;cd ignore_tmp;mkdir -p data/deep{,_dont_check_in};touch data/deep{,_dont_check_in}/foo;touch data/deep/.gitkeep;echo '/data/**\n!/data/deep/\n!/data/deep_dont_check_in/\n!/data/*/.gitkeep' > .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment