Is it possile to only push one file to Heroku, instead off all changed files?
Thanks...
Join Stack Overflow to learn, share knowledge, and build your career.
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.
git rm --cached
) and commit that removal, or git will continue to treat them as normal. The gitignore is only applied to untracked files.
– Cascabel
Jan 21 '11 at 15:56
You can commit single files
user@mypc~$ git add single/path/to.file
user@mypc~$ git commit -m "si"