Reputation: 4065
Is it possile to only push one file to Heroku, instead off all changed files?
Thanks...
Upvotes: 7
Views: 14176
Reputation: 49
You can commit single files
user@mypc~$ git add single/path/to.file
user@mypc~$ git commit -m "si"
Upvotes: 0
Reputation: 6491
If you commit only that one file then it is the only one that will be pushed.
Upvotes: 3
Reputation: 22821
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.
Upvotes: 6