git只向Heroku推送一个文件 [英] git push only one file to Heroku

查看:67
本文介绍了git只向Heroku推送一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



谢谢...

解决方案

没有。 Git会跟踪内容而不是文件,因此您会全部或全部推送。

如果有不想推送的文件,请将它们添加到 .gitignore 文件。
如果你已经提交了它们,你仍然会推它们来提交,但以后的更改将被忽略。


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.

这篇关于git只向Heroku推送一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆