Search code examples
gitsmartgit

How to create a REMOTE branch using smartgit?


How to create a REMOTE branch using smartgit?


Solution

  • With the usual command-line Git, a remote reference is automagically created when you clone a remote repository with git clone href://... (which would call the remote 'origin' by default).

    Or, you can add it manually with a command like git remote add origin href://.... To push up a branch, you would execute git push origin branchname. (See more detailed examples and explanation here.)

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