Git Ignore not working

image

Try as i might logs/ is still showing up on the status. triple checked and have followed mosh up to this point. did restart my console a few times and tried on bash and microsoft console too.

I retried the exercise without adding the / to the end of the log when doing mkdir this time it worked. maybe it’s a mac/ pc difference but it seems the naming convention had issues.

Had this problem and found that the .gitignore file has to be in UTF-8. There should be a warning about this for Windows users.
Found the same problem with “git diff”. If your files are anything but UTF-8 then git thinks they are binary and you won’t get the results that Mosh does.

1 Like