git避免 上传不需要的文件到代码库 参考链接: https://blog.csdn.net/lk142500/article/details/82869018 1、创建.gitignore 文件,添加需要规避的文件或者文件夹 vim .gitignore 2、使 .gitigore 文件生效 git config core.excludesfile .gitignore 3、之后就可以 git add . git commit -m '' git push 【注意:】清除已add 的文件: git rm -r --cached . 相关文章: 2022-02-07 2022-01-21 2021-09-23 2021-10-30 2022-01-07 2022-12-23 2022-12-23 2022-12-23