This gist is a collection of custom actions for Sourcetree. The actions abstract useful git commands & combinations.
- Open sourcetree on a repository
- Go to the "OS top bar" > "Actions" > "Custom Actions" > "Edit..."
- You should now be on Sourcetree settings with the "Custom Actions" tab selected
- Press "Add"
- Add the menu caption
- Select the script to run (see below examples of scripts)
- Enter
$REPO
on the parameters so that the actions can execute the comments on the repository folder (using$1
) - Press "OK"
- Done
⚠️ NOTE: make sure your action files have the-rwxr-xr-x
permissions. Runchmod +x *.sh
on the folder containing the actions files to apply the correct permissions so that they run successfully.