git - Creating directory/file name rules for .gitignore -


i'd set rules in .gitignore whereby directory or file name containing "_nogit" ignored.

examples:

  • ../videos_nogit/...
  • bigvideo_nogit.mp4
  • assets/_nogit/bigvideos...

thanks--

if have line in .gitignore file not have slashes in it, git treats shell glob pattern. thus, adding *_nogit* .gitignore ignore of files.

see gitignore man page.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -