使用 Github 時遇到問題

使用 Github 時遇到問題

為了向其他更好的程式設計師學習如何寫好的程式碼,我決定安裝 Github Desktop。

它已安裝 - 沒有問題,但是,在打開安裝包附帶的 Git shell 時,它告訴我 PowerShell 2.0 已棄用,必須安裝 PowerShell 3.0。

在 Github 論壇上,我找到了一些答案,首先說要使用 PowerShell 3.0,但後來他們添加了一條評論說要使用 PowerShell 5.0。

現在我做了一些研究,發現除了 1.0 和 2.0 之外沒有其他版本適用於 Windows Vista。

問題是 - 我該如何選擇 PowerShell 5.0 甚至 3.0?我們將不勝感激您的幫助。

答案1

不要使用 git 桌面工具。安裝適用於 Windows 的 Git接下來烏龜Git

前往專案網站並點擊綠色按鈕download or clone並複製儲存庫位址。

在此輸入影像描述

前往資源管理器,右鍵點選要複製程式碼的資料夾,選擇Git Clone,貼上儲存庫位址,然後按一下ok。這會克隆儲存庫,您可以檢查程式碼並自行編譯。

答案2

您無法在 Windows Vista 上執行 PowerShell 3.0。

微軟 Windows Vista 是自 2012 年 4 月起失去主流支持

PowerShell 3.0 於 2012 年 12 月發布。要求詳情):

  • 視窗8
  • Windows 伺服器 2012
  • Windows 7 SP1
  • Windows Server 2008 R2 SP1
  • Windows Server 2008 SP2

相關內容