Skip to content

Instantly share code, notes, and snippets.

@jnewc
Forked from Neo23x0/fix-sourcetree-git-secrets.sh
Last active August 26, 2020 16:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnewc/78334295d9dd7270e5243a002be6c5a4 to your computer and use it in GitHub Desktop.
Save jnewc/78334295d9dd7270e5243a002be6c5a4 to your computer and use it in GitHub Desktop.
SourceTree git-secrets
#!/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