使用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
developbranch 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) anddevelop(development branch). You’ll noticedevelopisn’t tracked remotely yet (it might show "Not tracked remotely" next to the branch name). - Hover over the
developbranch 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
developtoorigin. 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
相关产品推荐
相关产品推荐

