/SourcetreeScripts

Primary LanguagePowerShellThe UnlicenseUnlicense

SourcetreeScripts

A collection of powershell scripts implementing a selection of Sourcetree custom actions to integrate with GitLab and Visual Studio Code.

Supported Sourcetree Custom Actions

  1. View commit in GitLab
  2. View file commit in GitLab
  3. View file in GitLab
  4. View repository in GitLab
  5. Open repository folder in Visual Studio Code
  6. Open file in Visual Studio Code

Requirements

  1. Sourcetree pre-installed
  2. Visual Studio Code pre-installed
  3. Urls to Gitlab hosted code repositories

Usage

  1. Create a directory called c:\SourcetreeScripts and copy all .ps1 powershell script files included in this repo to that directory. Unblock each powershell script in file properties to make them runnable.
  2. Copy the customactions.xml file to the %LOCALAPPDATA%\Atlassian\SourceTree directory
  3. In Sourcetree in each repository to be used with these scripts, add a new remote called 'gitlab' that points to the http url root of the repository in GitLab. This action saves the url to the remote in the repository local .git/config file.

Credits

Inspired by https://github.com/damieng/DamienGKit/tree/master/Powershell/SourceTree