0
我安裝了Heroku CLI和git。安裝後,我重新啓動了命令提示符。當我運行git命令時,那些被認可很好。但是,當我輸入Heroku命令(例如heroku version
)時,它們無法識別。安裝後Heroku CLI命令無法識別
所以我設置路徑變量指向Heroku安裝。現在,Heroku命令正在工作,但git命令已變得無法識別。
實際問題是什麼?
這裏是cmd提示內容。
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Deva 5>git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.email=****
user.name=****
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
gui.wmstate=normal
gui.geometry=888x427+150+150 171 192
C:\Users\Deva 5>heroku version
'heroku' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Deva 5>heroku login
'heroku' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Deva 5>set path="C:\Program Files\Heroku\bin"
C:\Users\Deva 5>heroku version
heroku-cli: Updating to 6.13.1-7bcaf87... 11.6 MB/11.6 MB
heroku-cli/6.13.1-7bcaf87 (windows-x64) node-v8.2.1
C:\Users\Deva 5>git config --list
'git' is not recognized as an internal or external command,
operable program or batch file.
謝謝@poke它正在工作 – Ash3317