我想知道git和bitbucket的分支流程。
假设我在Bitbucket上创建了以下分支。
MasterFeature1Feature2
在phpstorm上,我克隆了版本库,现在我查看了分支Feature1。
我做了我的改变和承诺。
接下来我应该做什么?
我应该
1.结账大师
拔苗助长
然后将其合并到Feature1分支
在我将Feature1分支的变更推送到远程的Feature1,然后创建一个pull request之前,我是否可以先创建一个pull request?
我试着在bitbucket文档上找了一下,但没有找到。
我关心的是,在我把Feature1推送到远程Feature1之前,如何与主分支同步,以便我可以做一个pull请求?
有很多工作流程的变体,但我建议使用这个典型的流程......然后,最后,在Bitbucket上克隆仓库,现在我......。
# update your local master
git checkout master
git pull
# integrate recent changes from master into your branch
git checkout Feature1
git rebase master
# at this point, if any, resolve all conflicts normally and proceed
# then you can send your branch to the remote
git push origin HEAD
...最后,在Bitbucket上,创建一个pull request。Feature1 > master