开发者

git push only one file to Heroku

Is it possile to only push one file to 开发者_如何学编程Heroku, instead off all changed files?

Thanks...


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.file
user@mypc~$ git commit -m "si"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜