Kis*_*son 1 git git-workflow git-flow git-branch
我使用 git flow 方法,并且需要有关如何在远程 git 服务器上推送未就绪功能的建议。
默认情况下我们可以这样做(如果功能已经完成)
git checkout -b feature develop
Do something...
git commit -am "Message"
git checkout develop
git merge --no-ff feature
git push origin develop
git push origin feature
Run Code Online (Sandbox Code Playgroud)
如果我的功能尚未准备好,但我想将其推送到远程服务器上怎么办?
我尝试这样做:
git checkout -b feature develop
Do something...
git commit -am "Message"
git push origin feature
Run Code Online (Sandbox Code Playgroud)
但如果我看一下提交的图形方案,似乎开发和功能是同一个分支(但当然它们不一样)。
小智 5
您可以发布该功能:
$ git flow feature publish <name_of_feature>
Run Code Online (Sandbox Code Playgroud)
看看这个git flow 备忘单。
| 归档时间: |
|
| 查看次数: |
5351 次 |
| 最近记录: |