SourceTree

You can use Git commands in SourceTree 2.x for the StarTeam Git Command Line Utility after the following has been performed.

  1. Perform an initial clone using the StarTeam Git Command Line Utility.
  2. Add individual custom actions in SourceTree to pull, fetch, or push commands from StarTeam Server.

Adding the Commands

  1. In SourceTree, click Tools > Options.
  2. Click the Custom Actions tab.
  3. Click Add.
  4. In the Menu Caption field, enter StarTeam Push.
  5. In the Script to Run field, enter git.
  6. In the Parameters field, enter st push.

Repeat the same steps for Pull and Fetch.

Further Configuration

Password and other options can be entered in the command prompt which is opened when a menu action is performed.

Click Tools > Custom Actions > StarTeam Pull, for example.

Custom action configuration can also be edited in the SourceTree configuration file

%
 LOCALAPPDATA%\Atlassian\SourceTree\customactions.xml