简体   繁体   English

无法将SQL文件添加到Git存储库?

[英]Cannot add SQL file to Git repository?

I need to add a SQL file to my Git repository. 我需要将一个SQL文件添加到我的Git存储库中。 For some reason Tower or Git on the command line does not see that I've added a new file whenever it ends in .sql. 出于某种原因,命令行上的Tower或Git没有看到我在.sql结束时添加了一个新文件。

I've tried creating an empty .sql and removed everything in .gitignore, but it still doesn't see it. 我尝试创建一个空的.sql并删除.gitignore中的所有内容,但它仍然没有看到它。

Any ideas? 有任何想法吗?

You probably have a global gitignore set up. 您可能已经设置了全局gitignore。 This page on GitHub https://help.github.com/articles/ignoring-files recommends that SQL files are included in a global git ignore. GitHub上的这个页面https://help.github.com/articles/ignoring-files建议SQL文件包含在全局git ignore中。

Follow instruction on that page to set your own global rules. 按照该页面上的说明设置您自己的全局规则。

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

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