No such file or directory - git config --get remote.origin.url

D Doug Migliori 3 years 7 months ago
60 1 0

How do I resolve this build error?

Please Register or Login to post a reply

1 Replies

M Michael Toews

This usually occurs when git is not an available command from the command prompt. To add git to your path:

Windows
1. Right click "Computer" -> "Properties"
2. "Advanced system settings" in the left side column -> "Environment Variables" button.
3. Find the "Path" variable in the System variables box, click it, and then click the Edit button.
4. Add ;\cmd;\bin to the end of the Path variable string.
For example, my is ;C:\Program Files (x86)\Git so I would add ;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin to my path as below.

Mac OS
1. run the command add the line to your ~/.bash_profile file export PATH=$PATH:/bin
2. Once that is added to your .bash_profile, run the command source ~/.bash_profile to add the git bin folder to the PATH for this terminal window/tab and any future terminal windows.

> Once you have done either of these methods, open a cmd/terminal window and type git to see if it is a recognized command.

CONTACT
Can’t find what you’re looking for?