2 Answers. Git executable can be found by using running git --exec-path, which usually lives in the Git execution path. git --exec-path will give you the path.
For Jenkins version 2.121.3, Go to Manage jenkins -> Global tool configuration -> Git installations -> Path to Git executable: C:\Program Files\Git\bin\git.exe.
You should run sudo git --version
on your command line.
It will ask you to agree to the git xcode license agreement, once done everything will work as before.
When upgrading to MacOS Sierra I had to run: xcode-select --install
You should agree explicitly to user's licence agreement.
This is how you should do it:
sudo xcodebuild -license
That's it! :)
I got this problem too, because I uninstalled my Xcode.
I solved it with these steps:
Type xcode-select --install
in the terminal (Installs the license)
Download a git and re-install it
After this 2 steps, I can use git commands in the terminal like git
or git --version
.
But when I open the android studio, it still show the error
so we need another two steps:
Type which git
in your terminal (find out the git path)
Configure the path (you got in the step 3) in your android studio , then apply
Just like below pic
It works for me.
use "which git" in terminal. It will provide you your git location. like "/usr/local/bin/git" paste this location in popup which came after clicking "Fix it". Then click apply.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With