git status -> Show files that will be added (staged) in subdirectories

后端 未结 5 600
攒了一身酷
攒了一身酷 2020-12-23 02:28

Say I start a git repository in a folder, and I have several subdirectories in it.

I have several globbing patterns .gitignore to exclude files in the s

5条回答
  •  暖寄归人
    2020-12-23 03:31

    How about putting a .gitignore file in your sub directories instead along the line of

    # Ignore everything in this directory
    *
    # Except these file
    !.gitignore
    !file1
    !file2
    !file3
    

提交回复
热议问题