Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push only one file to Heroku

Tags:

git

heroku

Is it possile to only push one file to Heroku, instead off all changed files?

Thanks...

like image 527
andkjaer Avatar asked Jan 21 '11 13:01

andkjaer


2 Answers

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.

like image 90
jonescb Avatar answered Oct 05 '22 12:10

jonescb


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

like image 41
sanon Avatar answered Oct 05 '22 12:10

sanon