0

I have a folder named = Hackerrank inside there are some files I want to ignore into version control, So I add files into .gitignore file but changes are reflected into version control, .gitnore not working. I add HackerRank/whiteBoard.py to ignore file

GitHub Directory

enter image description here

Changes are showing on source control

enter image description here

Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
sarvesh kumar
  • 183
  • 11

1 Answers1

1

If you already versioned that file in a commit prior your modification to .gitignore, that file is tracked and will be tracked.

In that case, you have to remove the file from versioning before updating .gitignore. Please refer to duplicate question for more details: How to make git forget about a file that was tracked but is now in gitignore

Daemon Painter
  • 3,208
  • 3
  • 29
  • 44