.gitignore
contains the only line *.out
However, on some PC git status
shows files with .out
extensions
How to fix this ?
Update - the .out
files are not tracked !
.gitignore
contains the only line *.out
However, on some PC git status
shows files with .out
extensions
How to fix this ?
Update - the .out
files are not tracked !
The gitignore file ignores only files which aren't already added to the repo so non tracked files. You have to remove them first with:
git rm --cached filename
Otherwise the files are modified when you edit them.
.gitignore
works only for non tracked files so other users should remove them from index.
gitignore rules must be alone on their line in order to work. That is:
*.out # My output logs
will not work; while:
# My output logs
*.out
will work. I'm guessing that this is because gitignore looks for comments as lines that start with #