kushal33

.gitignore not working issue solution

Apr 19th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2.  
  3. Even if you haven't tracked the files so far, git seems to be able to "know" about them even after you add them to .gitignore.
  4. NOTE : First commit your current changes, or you will lose them.
  5.  
  6. Then run the following commands from the top folder of your git repo:
  7.  
  8. git rm -r --cached .
  9. git add .
  10. git commit -m "fixed untracked files"
Add Comment
Please, Sign In to add comment