问题 I am trying to push my project to github and heroku. Since I am using nodejs in my app , I have node_modules. Before I commit I have created a file called .gitignore to ignore the node modules. Inside the file I have added node_modules and tried to push to the GitHub from the comandline/Terminal. I was not expecting the node modules to be push but they appeared finally in the repo. Is there any ways i have to follow , i need help in this regards; thanks! Here is how I resolve my issue - $ git