How to connect local branch to remote branch? #325
Replies: 1 comment 2 replies
-
|
Hello, It's quite an unusual workflow. Instead of creating the branch in both places, I'd recommend creating your local branch and then pushing, it will automatically create the branch in the remote repository. In the Git CLI it would be slightly simplier than your version (you would have to write this the first time pushing): If you still want to simply connect both branches, you can right click in your local branch to open the contextual menu and click on "Change default upstream branch" (if nothing shows up, make sure to fetch your changes from CLI, as fetch is a bit broken in the latest release). After picking the branch, you can push normally. I hope I've explained myself properely. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just getting started with git and github so most likely this is me not understanding something.
I have created a new local branch; at the same time I have created its remote counterpart on github. The two repos are already connected. How do I connect the two branches, within Gitnuro?
I have used
git push -u remote_repo local_branch:remote_branchin the local repo terminal but I would like to know how to do it using the Gitnuro GUI.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions