git push only one file to Heroku git push only one file to Heroku heroku heroku

git push only one file to Heroku


No. Git tracks content not files, so you push all or nothing.
If there are files that you don't want to ever push, add them to the .gitignore file.If you've already committed them however, you would still push them for that commit, but any later changes will be ignored.


If you commit only that one file then it is the only one that will be pushed.


You can commit single files

user@mypc~$ git add single/path/to.fileuser@mypc~$ git commit -m "si"