In this page
What is Sourcetree?
Sourcetree is a free Git client by Atlassian with visual branch management and Bitbucket integration. It runs on Windows and macOS.
Sourcetree guide
Learn how to get the most out of Better Commit Policy in Sourcetree. If this is your Git client of choice, this guide is well worth a read.
Local check
The local check is implemented as a standard Git hook that runs at commit time.
When you submit a commit from Sourcetree, the hook automatically executes. If the local check rejects the commit, a dialog appears with the list of violations:
Of course, your changes remain staged, so you can easily fix the commit and retry.
Git configuration settings
The local check feature is configured through standard Git configuration settings.
Sourcetree offers a built-in feature to modify Git configuration settings. You can open the local .git/config file for editing through Repository → Repository Settings → Edit Config File.
Alternatively, you can open a terminal and run git config commands.
Questions?
Ask us any time.