如何通过在末尾添加 !*.css 来修改我的 .gitignore 文件?



我是拉/推送代码和 gitignore 的新手,我不知道如何修改 .gitignore 文件。

你可以简单地做:

echo "!*.css" >> .gitignore
git add .gitignore
git commit -m "Whitelist css files"
git push -u origin master

这将更新您的.gitignore文件。

最新更新