How to ignore all subfolders in a folder with .gitignore

前端 未结 2 1736
一个人的身影
一个人的身影 2021-02-13 15:14

I have a folder in Git with some files in it. Files are a part my Git repository. When running my project some work directories appear in this folder. Directories can have any n

2条回答
  •  失恋的感觉
    2021-02-13 15:41

    It's quite simple. Create the .gitignore in the folder with:

    */*
    

    I.e. ignore all files which are in any folder of the current folder.

提交回复
热议问题