# gitignore **Repository Path**: bitshelf/gitignore ## Basic Information - **Project Name**: gitignore - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-01 - **Last Updated**: 2023-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gitignore 1. 空行, 不匹配任何文件,所以可以添加空行,用来提高文件的可读性 2. 如果你确实想添加该文件,可以用-f强制添加到Git: 3. 以斜杠 /结尾表示目录 #temp/ 忽略temp目录下的所有目录和文件,不忽略temp文件 4. 问号“?”通配单个字符 5. !keep.bak # 但keep.bak文件除外(不会被忽略) 6. temp/*.txt # 忽略temp目录下所有扩展名为.txt的文件 7. temp/*/ # 忽略temp目录下的所有目录,但不会忽略该目录下的文件 8. /node_modules #忽略指定路径下的文件,注意需要加前面的"/",如果不加"/",那么所有路径包含这个名字的文件都会被忽略 9. **的意思是所有文件夹及其子文件夹