使用Sourcetree合并代码

时间:2017-01-22 18:49:53

标签: git version-control bitbucket sourcetree

我正在使用Sourcetree和Bitbucket git。我正在与其他开发人员合作开发一个项目。其中一个人创建了一个分支并上传了一些更改,现在我无法提取代码,因为我对本地存储库进行了一些更改。

每次我尝试提取代码时,都会从Sourcetree中得到此错误:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
git -c diff.mnemonicprefix=false -c core.quotepath=false pull
    --no-commit origin branch_dev_playerservice 
fatal: Couldn't find remote ref branch_dev_playerservice Completed with
errors, see above.

那么如何使用Sourcetree合并代码?

1 个答案:

答案 0 :(得分:0)

您可以从所有遥控器中选择提取来先获取。然后在日志/历史记录(显示远程分支)中,双击 origin / branch_dev_playerservice - >结帐新分支 - >确定。

现在,在您的本地仓库中,您还有一个分支branch_dev_playerservice,其中包含团队的工作。