After upgrading git from version 1.9 which worked fine with SourceTree, to the current version of git 2.6.1, and opening the Git Bash Terminal from the link in the SourceTree toolbar, the terminal does not recognise any git commands. Typining "git status" gives the response...
sh: git: command not found.
I have tried uninstalling SourceTree, uninstalling git, re-installing git and then re-installing SourceTree to no avail. Same behaviour. Git Flow has also stopped working.
I opted for gitbash to be the main terminal editor which apparently does not need to change the PATH environment variable - but even so it still cannot see git as if git is not on its path. Also SourceTree Options for git are set to use System Git. The UI displays my branches OK and UI actions seem to work. It's just that the Terminal is broken.
Any help appreciated.
When installing Git for Windows, opt to allow it to modify your PATH
. (The second of three options, not the one to add Git and *nix tools.)
"I opted for gitbash to be the main terminal editor" - How were you given this option? Are you confident that the Terminal button is actually launching gitbash?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.