GitHub Clone with Sourcetree

Adds an "Open with Sourcetree" button to the GitHub "Code" dropdown menu, allowing you to clone repositories directly into the Sourcetree application.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
cooaer
今日安裝
0
安裝總數
3
評價
0 0 0
版本
1.4
建立日期
2025-07-10
更新日期
2025-07-10
尺寸
6.2 KB
授權條款
MIT
腳本執行於

GitHub Clone with Sourcetree

This script adds an "Open with Sourcetree" button to the GitHub "Code" dropdown menu, allowing you to clone repositories directly into the Sourcetree application.

Screenshot of the "Open with Sourcetree" button

Features:

  • Adds a convenient button to the clone dialog.
  • Uses the official Sourcetree app icon, which adapts to GitHub's light and dark themes.
  • Automatically detects the repository's HTTPS clone URL.

Installation

  1. Make sure you have a user script manager installed, such as Tampermonkey or Greasemonkey.
  2. Navigate to the script file in this repository: github-clone-sourcetree.user.js.
  3. Click the link, and your user script manager will automatically open and prompt you to install the script.

Usage

  1. Go to any GitHub repository page.
  2. Click the green "Code" button.
  3. You will see the new "Open with Sourcetree" button in the dropdown list.
  4. Clicking it will launch the Sourcetree application and open the clone dialog for that repository.