How to uninstall Sourcetree on Mac
Removing Sourcetree does not touch your repositories: they are ordinary folders wherever you cloned them. Confirm where your repositories are saved, including any uncommitted work; uninstalling this Git client does not require pushing private work. Sourcetree keeps its own user data in ~/Library/Application Support/SourceTree; copy that folder first if you want Sourcetree to come back with the same setup after a reinstall. These steps cover the official download from sourcetreeapp.com and the Homebrew cask sourcetree, which install the same app.
Quit Sourcetree and remove the app
Quit Sourcetree from its app menu, then move Sourcetree from Applications to the Trash. Sourcetree can also install a privileged helper, which the Homebrew cask unloads under the name com.atlassian.SourceTreePrivilegedHelper2; it exists only if Sourcetree installed it, and the check below shows whether it did. Git credentials you saved may also sit in your login keychain; Mole never reads or removes keychain items.
If you installed Sourcetree's stree command-line tool, the check below shows whether the command is still on your PATH.
Where Sourcetree keeps its data
| Location | What it holds | What to do |
|---|---|---|
~/Library/Application Support/SourceTree |
Sourcetree's user data | Copy it first if you want your setup back after a reinstall |
~/Library/Preferences/com.torusknot.SourceTreeNotMAS.plist, ~/Library/Preferences/com.torusknot.SourceTreeNotMAS.LSSharedFileList.plist |
App preferences and recent items | Safe to remove |
~/Library/Caches/com.torusknot.SourceTreeNotMAS |
Cache | Safe to remove |
~/Library/Logs/Sourcetree |
Logs | Safe to remove |
~/Library/Saved Application State/com.torusknot.SourceTreeNotMAS.savedState |
Saved window state | Safe to remove |
These paths come from the Homebrew cask's zap list and Mole's test. The app's bundle identifier is com.torusknot.SourceTreeNotMAS, which is why the files carry that name rather than "Sourcetree".
Check the result
Run these read-only commands in Terminal:
pgrep -il sourcetree
ls /Library/LaunchDaemons /Library/PrivilegedHelperTools | grep -i sourcetree
ls -d ~/Library/Application\ Support/SourceTree
command -v stree
- No output from
pgrepmeans Sourcetree has quit. - No output from the filtered second line, after both directories were read without errors, means only that no filename matched
sourcetreethere; a read error leaves the check unresolved. A matching plist needs its Label and Program or ProgramArguments checked to confirm it belongs to this Sourcetree installation. Use the ordinary Homebrew uninstall below for a Homebrew-managed copy; for a direct-download helper, keep the app available and obtain the vendor’s removal instructions before deleting system files. Keep other or unidentified items. - The
ls -dline proves only that this support directory exists, not that settings are intact; inspect actual content or a usable backup. "No such file or directory" concerns that path alone, and a permission or read error leaves the check unresolved. - No output from
command -v streemeans the command is not on your PATH. A printed path means a link is left; inspect it withls -land remove it only if it points into the Sourcetree app you removed.
If you installed it with Homebrew
The sourcetree cask quits Sourcetree, unloads com.atlassian.SourceTreePrivilegedHelper2 and removes the stree command it links. Its zap list includes ~/Library/Application Support/SourceTree, the cache, ~/Library/Logs/Sourcetree, both preferences files, the saved window state and its entry in the recent-documents list. brew uninstall --cask --zap sourcetree moves them to the Trash whatever you selected in Mole. To keep Sourcetree's user data, remove only the app:
brew uninstall --cask sourcetree
Mole adds --zap only when everything in the zap list sits in your own ~/Library, is a row you left selected, and is not claimed by another installed app. Application Support/SourceTree is unselected while Remove data and settings with apps is off, the default. Enabling it can preselect eligible app-owned data. Untick it to keep your setup and prevent zap; Mole then removes Sourcetree without --zap and moves only selected rows.
What Mole lists
When you remove it with Mole:
- Both preferences files, the cache,
~/Library/Logs/Sourcetreeand the saved window state are selected by default. ~/Library/Application Support/SourceTreeis a review row whose selection follows the option above, because it is named after the app rather than its bundle identifier.- Mole does not search custom project folders for repositories, and Keychain items are outside its uninstall scope.
What this test covered
Sourcetree was installed from the official download and uninstalled on September 19, 2026, with a Mole Preview build, with the review list shown. Only the app was copied into Applications and the privileged helper was never installed, so the helper was not tested. The preferences, logs and temporary caches were removed; the empty Application Support/SourceTree folder was listed, left unselected and stayed on disk. No repositories or accounts are recorded, and the Homebrew cask was not part of this test.
