Read here: https://git-scm.com/docs/gitignore
"An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again"
As said, you have to exclude everything first (with pattern '*') , then include some patterns again (your desired '!*.sql').
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs