gitignore怎样忽略一种文件类型和所有子目录下的同类型文件

320阅读 0评论2022-11-15 zenith518
分类:云计算

比如,需要忽略html 和 img结尾的文件

点击(此处)折叠或打开

  1. .html
  2. .img
  3. **/*.html
  4. **/*.img

.gitignore 文件放在仓库目录的根位置

git add .gitignore
git commit -m "update gitignore"
git push

后面就可以开始copy 需要的文件目录到仓库目录中了。

2022-11-15
zenith
上一篇:如何解决can't find '__main__' module in ...pep517.../_in_process.py 问题
下一篇:bash环境变量传参例子