简体   繁体   English

.gitignore文件不适用于Bonobo

[英].gitignore File Not Working With Bonobo

I set up a Bonobo Git server in IIS and have it working on my local computer. 我在IIS中设置了Bonobo Git服务器,并使其在本地计算机上运行。 However, the .gitignore file is not working. 但是,.gitignore文件不起作用。 I'm using the GitHub Windows client and this ignore file . 我正在使用GitHub Windows客户端和此忽略文件 I want the bin and obj folders ignored, but they are showing up as changed folders every time I do a build in Visual Studio. 我希望bin和obj文件夹被忽略,但是每次我在Visual Studio中进行构建时,它们都显示为已更改的文件夹。 Any thoughts? 有什么想法吗?

If they are showing up as changed (and not added), they were already in the repository before you added the .gitignore file. 如果它们显示为已更改 (未添加),则在添加.gitignore文件之前,它们已存在于存储库中。 So you need to remove them from the repo by either a) deleting them from your local box and committing, or b) using git rm --cached on them. 因此,您需要通过以下方法从存储库中删除它们:a)从本地框中删除它们并提交,或b)在它们上使用git rm --cached

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM