Forked from Neo23x0/fix-sourcetree-git-secrets.sh
Last active
August 26, 2020 16:44
-
-
Save jnewc/78334295d9dd7270e5243a002be6c5a4 to your computer and use it in GitHub Desktop.
SourceTree git-secrets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# THIS WORKS WITH GIT INSTALLED VIA BREW | |
# | |
# Fixes error: | |
# git: 'secrets' is not a git command. See 'git --help'. | |
# | |
# More information: https://qiita.com/yamaryu0508/items/d959dc32442b08b8a0a4 | |
brew install git | |
# Now go to SourceTree preferences > Git > Use System Git | |
sudo ln -s /usr/local/bin/git-secrets /usr/local/Cellar/git/$(ls /usr/local/Cellar/git/ | head -1)/bin/git-secrets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment