Github'a işleyebilir [kopya]

Aug 18 2020

Bir proje hazırladım ve Github'a taahhüt etmek istiyorum. Ayrıca Git + GitHub masaüstü ve içinde VSCode ve terminal kullanın. Öyleyse, projeli klasördeki VSCode'daki terminalden 'git'i kontrol etmeye çalıştığımda sorun yaşıyorum:

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

Ortak cmd kullanırken her şey yolunda! Nasıl düzeltebilirim?

Yanıtlar

albeksdurf Aug 18 2020 at 10:18

Bunun nedeni, gityürütülebilir ( git.exe) dizininizin PATHdeğişkende ayarlanmamış olmasıdır , bu nedenle PowerShell onu bulamaz.

Git'in kurulu olduğu klasörü bulmanız ve bunu PATHWindows'un ortam değişkenleri düzenleyicisini kullanarak eklemeniz gerekir .

Bu yanıttaki ayrıntılı talimatlara bakın .