For use in Atlassian SourceTree as a custom action.
Select a branch in SourceTree, then invoke the custom action that calls this script. The selected branch will be fetched and fast-forwarded.
- Download the accompanying
git_fetch_by_hashshell script into a location on your PATH. Ensure it is executable withchmod u+x git_fetch_by_hash - In Atlassian, open Preferences and create a new Custom Action:
- set Script to run: to
git_fetch_by_hash - set Parameters: to
$SHA - (optional) set a keyboard shortcut