iT邦幫忙

0

VS CODE Portable+ PortableGit 問題請教

  • 分享至 

  • xImage

您好:
我使用免安裝版VS CODE放在 C:\x_soft\VSCode
免安裝版 Git 放在 C:\x_soft\PortableGit\bin
我在workspace setting設定
參考( https://241931348f64b1d1.wordpress.com/2016/07/22/how-to-use-portable-visual-studio-code-and-git/ )

  "http.proxy": "http://192.168.1.1:80",
 
    // Path to the git executable
    //"git.path": "C:\\Data\\GitPortable\\App\\Git\\Bin\\git.exe"
    "git.path": "C:\\x_soft\\PortableGit\\bin\\git.exe"

但是重開VS CODE
他會顯示
Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

https://ithelp.ithome.com.tw/upload/images/20220603/201040958WtRmQ1ctn.png

請問,這該如何解決?
謝謝!

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
Felix阿甫
iT邦研究生 5 級 ‧ 2022-06-04 22:04:04
最佳解答

可能是vscode沒有讀到,去setting看一下設定

https://ithelp.ithome.com.tw/upload/images/20220604/20108931rlL1PrsTHL.png

也可以參考stackoverflow

noway iT邦研究生 3 級 ‧ 2022-06-09 20:53:36 檢舉

謝謝!

我要發表回答

立即登入回答