When using the GitHub for Mac app (version 87), I received the following error:
git: \'credential-osxkeychain\' is not a git command. See \'git --help
The source of this problem is that GitHub for Mac uses a different directory path for its executables than the Command Line Tools.
GitHub for Mac: /Applications/GitHub.app/Contents/Resources/git/bin
Command Line Tools: /usr/local/git/bin/
So when GitHub for Mac tries to Sync a Branch it presents the error because it can not find git-credential-osxkeychain executable file.
To solve the problem:
ln -s
This is the command I used on my system:
ln -s /usr/local/git/bin/git-credential-osxkeychain /Applications/GitHub.app/Contents/Resources/git/bin/git-credential-osxkeychain