我是拉/推送代码和 gitignore 的新手,我不知道如何修改 .gitignore 文件。
你可以简单地做:
echo "!*.css" >> .gitignore
git add .gitignore
git commit -m "Whitelist css files"
git push -u origin master
这将更新您的.gitignore
文件。