I have a repository with lots of bash scripts that I want to ignore. The problem is that the bash scripts don't have a .sh
extension, but instead have #!/bin/bash
at the start to signify that they are bash scripts. As a result, they cannot be identified by their file name.
I have tried putting *.sh
in my .gitignore (and resetting the cache), but the bash scripts are still tracked.
Is there any way I can ignore these bash scripts in my .gitignore?