Skip to content

Instantly share code, notes, and snippets.

@Neo23x0
Created October 27, 2018 20:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Neo23x0/1b03425d60c3735a0bc5b18dc08c9abd to your computer and use it in GitHub Desktop.
Save Neo23x0/1b03425d60c3735a0bc5b18dc08c9abd to your computer and use it in GitHub Desktop.
SourceTree git-secrets
#!/bin/bash
#
# Fixes error:
# git: 'secrets' is not a git command. See 'git --help'.
#
# 1. Go to SourceTree preferences > Git > Use System Git
# Select the system's git e.g. /usr/local/git/bin/git
# 2. Run this script
# Adust the path if your system's git is located in a different folder
# git-secrets must be linked in the same folder as the system's git binary
#
# More information: https://qiita.com/yamaryu0508/items/d959dc32442b08b8a0a4
sudo ln -s /usr/local/bin/git-secrets /usr/local/git/bin/git-secrets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment