How do you get git to ignore all contents of a directory?

后端 未结 3 1469
梦谈多话
梦谈多话 2020-12-13 06:11

I have a git directory which contains the a whole bunch of files and then has a directory called \'sessions\'. \'sessions\' contains cookie information for my web.py program

3条回答
  •  情书的邮戳
    2020-12-13 06:36

    If I'm remembering correctly, you can do this by creating a .gitignore file in the sessions folder with [^.]* as its contents.

提交回复
热议问题