1

Basically I initialized Gitflow using SourceTree. It created a develop branch locally, but not remotely. How am I supposed to get it to the remote? I found this question, which suggests to use git push origin develop. How do I do that using the SourceTree Git Flow functionalities?

1 Answers1

2

Gitflow will only create braches locally it is up to you to push them to the remote (origin) repository.

You can create remote branches via the SourceTree GUI in a couple ways:

  1. Right click the develop branch and Push To origin.
  2. Use the normal "Push" button and type the branch name into the "Remote Branch" field.
FullStack
  • 437
  • 5
  • 15
  • Thanks. Why does the normal Push UI not allow for this? https://imgur.com/NzSQBYV I tried simply typing "develop" in the remote branch field but if you do that the "Push" button does nothing. –  Apr 13 '18 at 15:58
  • So that image is saying that on your local master branch is tracking the remote master which is perfect. Tick the push button and type develop. this will push your local branch develop to a remote branch called develop. like this https://imgur.com/a/Lc2FZ – FullStack Apr 13 '18 at 16:02
  • That's what I'm saying, when I type "develop" in there manually and click submit ("Push") it literally does nothing. I assumed this was a validation issue and it was telling me it couldn't be done. Let me test again and report back. –  Apr 13 '18 at 16:08
  • Okay it worked that time as expected. Either I'm crazy or encountered a weird bug. Sorry about that. –  Apr 13 '18 at 16:09
  • I was going to edit your answer to include both options for pushing branches via the GUI but I decided to see if you wanted to do that instead? –  Apr 13 '18 at 16:10
  • It's up to you, I don't mind. Glad your issue is resolved – FullStack Apr 13 '18 at 16:12
  • 1
    @THEJOATMON fancy marking this as the accepted answer? – FullStack Mar 23 '22 at 14:24