I'm having trouble with this Git issue and I cannot seem to resolve it.
I have a node that I've been building and I've finally reached the point of deploying it.
I'm trying to push files directly to my app on Heroku. I know that I can simply pull the data from a Github repo but I'd like to avoid having my private keys public, obviously, so I created a custom module for the keys to be accessed (e.g., "modules/private-variables.js"). This file is included in the .gitignore so I don't push it to my Github, which is publicly viewable.
When it came time to push my app to Heroku, for whatever reason I can not push that file specifically.
git add -f modules/private-variables.js
For whatever reason this is not working. It's still replying that "Everything is up-to-date"
$ git add -f modules/private-variables.js
$ git commit -m "7th attempt to include necessary file"
$ git push heroku master
I even did "git commit -a"
$ git add -f modules/private-variables.js
$ git commit -a
$ git push heroku master
I've ran "heroku run bash" and concluded that my file was still not there.
Admittedly I am still relatively inexperienced with Git but this is the first time I've tried to include a file that was once in the .gitignore, so I've never had this issue. I even tried deleting the one line from .gitignore.
Any helpful tips would be much appreciated.