0

I have the following file structure and seem to be doing something wrong with handling the gitignore. I am trying to make sure variable.js is not pushed but despite it being listed under gitignore, it is still showing up on github. Could someone please tell me what I am doing wrong here?enter image description here

phd
  • 69,888
  • 11
  • 97
  • 133
TNT928
  • 41
  • 1
  • 9

1 Answers1

0

You need to provide file/folder name you want to ignore. In your case variable.js - it will ignore every file in your project that is variable.js.
If you only want to ignore file in root folder, add /variable.js to gitignore

edit: try to delete (move) file then commit changes. this should do the trick