I've been trying to write some comments on my .gitignore
file.
I started the comments with #
but the sentences don't change into comments.
How can I solve this?
My .gitignore
file looks like this:
# this is a comment
db/* .sqlite3
I've been trying to write some comments on my .gitignore
file.
I started the comments with #
but the sentences don't change into comments.
How can I solve this?
My .gitignore
file looks like this:
# this is a comment
db/* .sqlite3
According to the documentation
A line starting with # serves as a comment. Put a backslash ("\") in front of the first hash for patterns that begin with a hash.
Whether your editor provides syntax highlight or not, #
at the line start denotes a comment
Could it be, that you added sqlite before adding the entry to the. gitignore file?
You have to remove the file from the repo with
git rm --cached db/*.sqlite3
then commit the remove. It will be ignored afterwards.