Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@scottious
Created November 10, 2014 00:39
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save scottious/0d99ea77daa041b28929 to your computer and use it in GitHub Desktop.
Save scottious/0d99ea77daa041b28929 to your computer and use it in GitHub Desktop.
__git_ps1 command not found issue.

I've been having an issue with the following error appear in the prompt after upgrading to Yosemite. The solution was to source the git bash completion and prompt files from a local copy.

    curl -o ~/.git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
    curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh

Then in:

    vi ~/bash_profile

Add:

    source ~/.git-completion.bash
    source ~/.git-prompt.sh

Reload terminal and you should be good to go.

@BoyetDgte
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment