https://github.com/oe/sourcetree-custom-actions
useful sourcetree custom actions bash scripts
https://github.com/oe/sourcetree-custom-actions
custom-actions scripts shell sourcetree
Last synced: about 1 year ago
JSON representation
useful sourcetree custom actions bash scripts
- Host: GitHub
- URL: https://github.com/oe/sourcetree-custom-actions
- Owner: oe
- License: mit
- Created: 2020-05-07T06:17:32.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T16:30:29.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T11:14:46.814Z (about 1 year ago)
- Topics: custom-actions, scripts, shell, sourcetree
- Language: Shell
- Size: 7.36 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SourceTree custom actions
Useful [SourceTree](https://www.sourcetreeapp.com/) custom actions bash scripts. It can enable you to:
- Open current repo in Sublime Text
- Open current repo in VS Code
- Open Select commit in Browser(Support github/gitlab)
- Copy current Repo Url to Clipboard
- Open XCode project in XCode
- Stash untracked files by running `git stash --include-untracked`, you should stage your changes before running this action.
- Reset any local changes by running `git reset --hard HEAD`
Tested on Mac, but should work on Linux and Windows(Win10 with SubLinux) too(you may need to alter application path in the scripts)
## how to install
1. [download this repo](https://github.com/oe/sourcetree-custom-actions/archive/master.zip)
2. unzip and copy `scripts` to some untouched folder, like SourceTree's application data directory `~/Library/Application Support/SourceTree/`
3. open `SourceTree` Go to `Preferences -> Custom Actions -> Add` and fill custom action with parameters as shown in the figure(add a shortcut if you wish): 
## Tips
If you are using Mac, when browser a repo with SourceTree, you may press ⌘ + shift + / and type the menu item name then press enter to call that menu
You may need to add execution permission via `chmod +x *.sh` when an error `permission denied` shown up.
## Alfred Workflow
If you are using alfred on macOS, you may try [sourcetree-alfred-workflow](https://github.com/oe/sourcetree-alfred-workflow) also created by me