andkjaer
andkjaer

Reputation: 4065

git push only one file to Heroku

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

Thanks...

Upvotes: 7

Views: 14176

Answers (3)

user212131
user212131

Reputation: 49

You can commit single files

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

Upvotes: 0

sanon
sanon

Reputation: 6491

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

Upvotes: 3

jonescb
jonescb

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

Related Questions