You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用SourceTree初始化Gitflow后,如何推送本地develop分支到远程?

Push Local develop Branch to Remote Using SourceTree's Git Flow

Got it, you don’t need to rely on the git push origin develop command to get your local develop branch up to the remote—you can handle this entirely through SourceTree’s built-in Git Flow tools. Here’s how:

  • Open SourceTree and navigate to your local repository. You should already see the develop branch in your branch list (since you initialized Git Flow locally).
  • Launch the Git Flow panel: either click the Git Flow icon in the top toolbar (it looks like a branching diagram with arrows) or go to the menu bar and select Repository > Git Flow.
  • In the Git Flow panel, you’ll see your configured branches—usually master (main branch) and develop (development branch). You’ll notice develop isn’t tracked remotely yet (it might show "Not tracked remotely" next to the branch name).
  • Hover over the develop branch entry in the panel, and a small push icon (an upward-pointing arrow) will appear next to it. Click that icon.
  • A confirmation window will pop up asking if you want to push develop to origin. Double-check the remote destination is correct, then click OK.

That’s all there is to it! SourceTree will push your local develop branch to the remote repository, and moving forward, Git Flow will recognize this remote branch for all your future workflow operations (like merging feature branches or cutting releases).


内容的提问来源于stack exchange,提问作者user736893

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 03:33:11