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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -