Può eseguire il commit su GitHub [duplicato]
Aug 18 2020
Ho preparato un progetto e vorrei impegnarmi con Github. A avere anche Git + GitHub desktop e utilizzare VSCode e il terminale in esso. Quindi, quando provo a controllare 'git' dal terminale in VSCode nella cartella con il progetto ho il problema:
git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ git
+ ~~~
+ CategoryInfo : ObjectNotFound: (git:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Quando si utilizza cmd comune tutto è OK! Come posso risolverlo?
Risposte
albeksdurf Aug 18 2020 at 10:18
Questo perché la tua directory git
eseguibile ( git.exe
) non è impostata nella PATH
variabile, quindi PowerShell non è in grado di trovarla.
È necessario individuare la cartella in cui è installato git e aggiungerla PATH
utilizzando l'editor delle variabili di ambiente di Windows.
Vedi le istruzioni dettagliate in questa risposta .