Zoolander
Zoolander

Reputation: 2363

Cannot add SQL file to Git repository?

I need to add a SQL file to my Git repository. 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.

I've tried creating an empty .sql and removed everything in .gitignore, but it still doesn't see it.

Any ideas?

Upvotes: 7

Views: 6320

Answers (1)

Robbie
Robbie

Reputation: 17720

You probably have a global gitignore set up. This page on GitHub https://help.github.com/articles/ignoring-files recommends that SQL files are included in a global git ignore.

Follow instruction on that page to set your own global rules.

Upvotes: 12

Related Questions