- Home /
No Git Executable Was Found
Hey hey,
Whenever I add a package now from a git repo I receive the same error:
Project has invalid dependencies
Not 'git' executable was found. Please install Git on your system and restart Unity.
Git has been installed on the machine for a long, long time, but I reinstalled just to be certain I didn't miss anything and to make sure the cmd was added to the system PATH variable.
Tried with github (public repo) and bitbucket.
Still no luck.
Anyone have ideas on this?
I would appreciate it!
Thanks,
(Using 2019.1.7)
What system ? Windows I presume ? Got should be embedded within Unity install. Did you mess with Unity directories ?
To install git, don't use any third-party installer such as github for windows and such, they use modified binaries that can mess with Unity. The direct link to Git for Windows here: https://git-scm.com/download/win
Yes, @$$anonymous$$outon i installed directly from git-scm and I’m on Windows. Default Unity install (which should not affect its ability to use system git).
Answer by Mouton · Sep 25, 2019 at 12:23 PM
So, the problem was all about Git and PATH environment variable. Here is a good StackOverflow answer which gives more details on Git PATH on Windows: https://stackoverflow.com/questions/26620312/installing-git-in-path-with-github-client-for-windows/34767523#34767523
Former comment
A few ideas:
Try to run Unity with Administrator privileges (if this work, your user PATH is messed up, or you have wrong user permissions)
Do you run Windows 10 or a former version ?
Do you run a NT version of Windows with strategy rules ? Check if they don't block
Did you try with another version of Unity ?
Can you copy-paste your
PATH
environment variable ?What does
git
orgit.exe
returns when executed from cmd.exe ? from powershell ?
I found the error @$$anonymous$$outon by checking what you said. The Git install only added the Git cmd not the Git exe to the PATH. When I added it, it worked.
can't see how to mark your comment as the correct answer so if you post your comment into an answer I will mark it as the correct answer.*
For any else who encounter this issue, the Git exe must also be specified in the PATH and the Windows installer middle option (install into Windows shell) doesn't do that. I had to add it manually.
Just throwing this out, I also had to reboot before it worked.
Your answer
Follow this Question
Related Questions
Question about Unity Package Manager System and GITHUB. 0 Answers
What is "PREVIEW PACKAGES IN USE" 4 Answers
Unity Engine script assemblies not accessible in my package 1 Answer
SourceTree Hangs (not responding) with Unity Large Project 1 Answer
How to use git bash instead of cmd: Github for Unity Windows 1 Answer