Меню

Ошибка cannot run git

In Intellij I’m receiving the error message that is in the title of this question: Cannot Run Git File Not Found: /usr/local/bin/git.

The file, however, does exist. I’ve tried selecting it in the configuration dialog, but without success.

The problem does not seem to be present in VS Code.

Anyone have an idea why this is happening?

asked Aug 14, 2018 at 19:43

Josh's user avatar

You need to setup git properly, go to Settings, then File | Settings | Version Control | Git and edit Path to Git executable field. If you enter path to Git (which git in terminal) — usually /usr/bin/git and press Test it may popup a more informative message. Also check the rights of the git executable.

answered Aug 14, 2018 at 19:52

streetturtle's user avatar

streetturtlestreetturtle

5,2522 gold badges23 silver badges42 bronze badges

5

You need to set correct git executable as shown in the attached screen and it will be ok.

enter image description here

Kamil's user avatar

Kamil

2,63231 silver badges39 bronze badges

answered Apr 22, 2020 at 7:21

changjie du's user avatar

1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

HareemWaqas opened this issue

Mar 11, 2019

· 9 comments


Closed

Cannot Run Git

#2576

HareemWaqas opened this issue

Mar 11, 2019

· 9 comments

Comments

@HareemWaqas

An error occur when Opening project in Android Studio, By following these steps
In the menu bar, click File > New > Project from Version Control… > Git
OR
(if Quick Start menu open): Check out project from Version Control > Git
Enter the Git URL you obtained from Fork the Git repository.

Error : Cannot Run Git
Illegal char :> at index 5:
https://github.com/YourName/apps-android-commons.git

@maskaravivek

Can you try cloning from the command line?

Go the folder where you wish to clone the repo and use this command:

git clone https://github.com/YourName/apps-android-commons.git

@HareemWaqas

yes, thank you
I have tried but still not working

@neslihanturan

@HareemWaqas

@domdomegg

What operating system are you using?

What is the result of running the command in a terminal:

Are you able to clone other repositories? e.g. how about

git clone https://github.com/Microsoft/calculator

If it doesn’t work but has different output could you post it here?

@domdomegg

Also another thing to try is maybe clone with the Git URL instead of HTTPS — it shouldn’t make a difference but from the sounds of the error it seems to be getting stuck processing the http prefix.

Your git URL:

git@github.com:HareemWaqas/apps-android-commons.git

@HareemWaqas

Thanks domdomegg!
I am using Windows10, trying again and again but still stuck, Let me follow your given steps ,i’ll upload screen shots

@nicolas-raoul

@HareemWaqas I suggest you ask at StackOverflow or another developers forum, since this seems to be independent from the app.

@mesineb

На чтение 2 мин. Опубликовано 15.12.2019

В Intellij я получаю сообщение об ошибке, указанное в заголовке этого вопроса: Cannot Run Git File Not Found: /usr/local/bin/git удается Cannot Run Git File Not Found: /usr/local/bin/git .

Однако файл существует. Я попытался выбрать его в диалоговом окне конфигурации, но безуспешно.

Проблема, похоже, не существует в VS Code.

У кого-нибудь есть идея, почему это происходит?

Вам нужно правильно настроить git, перейдите в «Настройки», затем «Файл | Настройки | Управление версиями | Git и редактируйте исполняемое поле «Путь к Git». Если вы вводите путь к Git ( which git в терминале) — обычно /usr/bin/git и нажмите Test, он может вывести более информативное сообщение. Также проверьте права исполняемого файла git.

In Intellij I’m receiving the error message that is in the title of this question: Cannot Run Git File Not Found: /usr/local/bin/git .

The file, however, does exist. I’ve tried selecting it in the configuration dialog, but without success.

The problem does not seem to be present in VS Code.

Anyone have an idea why this is happening?

1 Answer 1

You need to setup git properly, go to Settings, then File | Settings | Version Control | Git and edit Path to Git executable field. If you enter path to Git ( which git in terminal) — usually /usr/bin/git and press Test it may popup a more informative message. Also check the rights of the git executable.

I have just updated to 2016.3 and when I try to download a source from GitHub I get:

Cannot run program «git.exe». CreateProcess=2. The system cannot find the file specified.

All my GitHub credentials are fine. There is no GitHub folder in AppData and there isn’t one one another machine that is downloading from GitHub fine.

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка capi 2 windows 7 сообщество microsoft
  • Ошибка ce 34459 5 ps4