1

I'm using two different computers to work on my Node.js app. I modified a plugin on one computer that's different from the other, and as a result I have all of these unstaged changes related to the installation of that plugin that I don't want to commit and push up remotely. I've been using git gui to pick only the changes I want committed, but there's got to be a more permanent solution.

How do I remove the files from being listed as unstaged changes while keeping the changes themselves on my local machine? I've added the directories in question to .gitignore, and I've followed the steps listed here to try to refresh it, but every time I do I end up with a commit that contains the files that I don't want to be pushed up.

Community
  • 1
  • 1
Ari
  • 11
  • 1
  • 1
    Please show your .gitignore file and examples of filenames you want to ignore – phts Sep 20 '14 at 23:58
  • If your plugin's tracked (try `git ls-files path/to/plugin`) then you need to tell git to not bother checking the file, `git update-index --assume-unchanged path/to/plugin`. – jthill Sep 21 '14 at 12:43

0 Answers0