Graphite-Docs / graphite

Encrypted, secure, user-owned productivity suite
https://graphitedocs.com
GNU General Public License v3.0
586 stars 89 forks source link

Changes to gitignored files are tracked by Git #73

Closed arisgk closed 5 years ago

arisgk commented 5 years ago

Environment

OS: Ubuntu 18.04.1 LTS

Steps to reproduce

  1. Update your .env file in project root (which is gitignored)
  2. Run git status to see if the change was tracked by git

Expected result

Changes to .env (or any other gitignored files) should be ignored

Actual result

Change to .env is not ignored

Potential solution

According to the answer with the most upvotes in this question, something like:

git rm -r --cached .
git add .
git commit -m "Fixes untracked files"

will fix the issue

polluterofminds commented 5 years ago

Thanks, @arisgk! Not sure how long it would have taken me to track this down, so I appreciate the link. Just followed the steps outlined.