How to create a REMOTE branch using smartgit?

How to create a REMOTE branch using smartgit?

+8
git smartgit
source share
7 answers

With the usual Git command line, a remote link is automatically created when you clone a remote repository using git clone href://... (which by default will cause remote "origin").

Or you can add it manually using a command like git remote add origin href://... To depress a branch, you must run git push origin branchname . (See more detailed examples and explanations here .)

However, I see that SmartGit is a little different (I have not used it myself) and is based on the GUI. As far as I can see, the “Clone” and “Push” commands mentioned above can be found in the SmartGit 'Remote' menu. If you want to add a link to the remote repository, is there an "Add" option in the 'Remote' menu

+6
source share

Push advanced trick didn't work for me. The only way I can do this on SmartGit 3.0.6 was as follows:

  • Remote → Manage remotes , then click Add and specify the details of the remote phone, for example. 'master', ' https://github.com/SomeCompany/SomeRepo '.
  • Then click Pull . He will say that he can only update blah blah submodules, click OK. Fetch displays a “no shared commits” warning.
  • Now go to Branch → Branch Manager . Right-click on your local one and select Install Tracked Branch ... , then select the corresponding remote branch.
  • Select again. Right this time.
  • Finally, press on the remote control.

It is an achievement for the GUI tool to make something less intuitive, but SmartGit does an amazing job here.

Order of events

+9
source share

SmartGit does not make this very clear, but there is an easy way to do it. First of all, I assume that you know about industry tracking. The local branch typically tracks the remote branch (possibly on the server). This allows you to push and pull changes to and from this thread.

The focus is on resetting the tracking branch, so it doesn't track anything. To do this, go to the "Branch" section of Branch Manager, right-click on the local branch, then click "Reset tracked branch ..."

Now that you are ready to push your changes as a new remote branch, go to Remote "Push Advanced and make sure that the" Push current branch "radio station is the only one selected.

When you click the button, it will ask you if you want to set up tracking. Click the skip button. You should now have a remote branch.

Note. Name your local branch as you want it to be called the remote branch before you click it.

+3
source share

In SmartGit 4.5.2, it is very simple. Just go to Remote> Add and just enter the remote URL

+2
source share

With SmartGit 6.5.9 (August 2015):

  • check (double click) the branch that your new one should be based on (most likely, you already did it)
  • right-click (as described) on the Branches tab in the local branch on which you want to create your new branch. Use (o) Custom Ref. The field is rather alarming, which makes me think that this can only be for short git hashes like 92fa03d or such, but really setting new branch names like feature/JIRA-1234-your-feature-here works as expected:

    enter image description here

  • double-click the new remote branch on the Branches tab (original reset). SmartGit, as usual, suggests creating a properly named and tracked local branch

+1
source share

The current version of SmartGit (6.5.8) makes this easy with the Push To command.

  • Push To is located in the context menu on the Branches tab (not on the Branch window menu).
  • The context menu opens with the right mouse button on the branch that you want to click.
  • Just enter the name of the remote branch you want to create in the Push To dialog box.

SmartGit will create a remote branch, click on the current HEAD branch and set the remote branch as the tracking branch.

(All of this assumes that you want to create a branch in your standard origin tracking tracking for the current local repo.)

0
source share

I don’t know that you can create a remote branch, but I think you can find what you are looking for in Project/Clone...

(Disclaimer, I used it only once, and it was a long time ago)

You can try to ask their forum / discussion list . They respond very well to mail sent for support ( Help/Contact Support... )

-one
source share

All Articles