Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.