0

I've been working with GitHub for years, but this is a new issue. My project (https://github.com/MisterMorse/abbas-tables-node-express-api) keeps displaying JetBrains fluff despite my .gitignore file marking it. The file says:

.idea/

.idea

idea/

idea

/.idea/

/.idea

/idea/

/idea

But the folder is ALWAYS displayed. What am I doing wrong?

rainydaymatt
  • 594
  • 3
  • 10
  • 21
  • Trying to ignore stuff that is already tracked, probably? That is not gonna fly. – eftshift0 Jul 17 '22 at 19:58
  • GitHub doesn't care about your `.gitignore` file; that's only meaningful to `git`, and it doesn't influence how `git` treats files that have already been added to your repository (it just prevents `git` from noticing *untracked* files). If GitHub is showing those directories, it suggests you have added files in those directories to your repository. – larsks Jul 17 '22 at 19:59
  • In your case : you probably want to run `git rm -r --cached .idea/`, and then `git commit --amend` to modify the existing commit. You will then have to run `git push --force` to update your github's repo with a history whuch contains only the correct content. – LeGEC Jul 17 '22 at 20:01
  • Thanks, guys. I rarely post because I don't want to look lazy if answers already exist, but I don't always know just what to look for. – rainydaymatt Jul 17 '22 at 20:14

0 Answers0