无需提交即可将更改推送到远程回购 [英] Push changes to remote repo without commit

查看:101
本文介绍了无需提交即可将更改推送到远程回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能将更改推送到远程存储库而不提交到主分支?我使用远程回购仅用于部署。

Is it possible to push changes to a remote repository without commiting to the master branch? I use the remote repo just for deploying.

推荐答案

不,没有办法做到这一点,因为它会完全反对我猜,整个git战略。我不知道你的部署系统,但是我想一个很好的方法来做你正在尝试的是在不同的分支上工作(也就是说,对于开发和推送时部署的部署),并合并更改你想从你的开发分支部署到你的分支。

No, there is no way to do that, as it would completely oppose the whole "git strategy", I guess. I don't know about your deployment system, but I guess a good way to do what you are trying to is to work on different branches (that is, on for development and one which gets deployed when pushed to), and merging the changes you want deployed from your development-branch into your live branch.

这篇关于无需提交即可将更改推送到远程回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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