寻找一些建议我如何下载最新的&安装git&它使用Powershell脚本依赖于我的机器。我已经通过了_,但它似乎已被弃用。我在Windows上,我可以编写下载和安装的命令,但不确定从何处下载安装文件?
答案 0 :(得分:1)
我建议使用chocolatey来安装软件包,因为它为安装各种各样的Windows应用程序提供了一致的界面。
来自Powershell(确保Get-ExecutionPolicy至少是RemoteSigned):
# install chocolatey
iwr https://chocolatey.org/install.ps1 | iex
#install git
choco install git