vs 开发者powershell安装git

在 VS 开发者 PowerShell 中安装 Git 的方法是:

  1. 打开 VS 开发者 PowerShell

  2. 运行以下命令安装 chocolatey(一个 Windows 包管理器):

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

  1. 使用 chocolatey 安装 git:

choco install git -y

  1. 等待安装完成后,验证是否安装成功:

git --version

如果正确打印出 git 版本,则表示已经成功安装。

  1. 最后设置全局的用户名称和邮箱:

git config --global user.name "your name"

git config --global user.email "your@email.com"

这样就在 VS 开发者 PowerShell 中安装好了 git。后续就可以使用 git 相关命令了。

let me know if you have any other questions!

相关推荐
2501_9032386522 分钟前
Git Bash:Windows下的强大命令行工具
windows·git·bash·个人开发
神明木佑2 小时前
datalist 是什么?以及作用是什么?
git
那片海还在吗4 小时前
使用 Git、Postman、Newman、Jenkins 与邮件构建自动化接口测试及通知流程
git·jenkins·postman
heeheeai12 小时前
git 国内源
git
the_seventh_dog13 小时前
git | 团队协作开发注意事项
git
yinshuilan16 小时前
今日运维之-Mac笔记本python环境问题
运维·git·python·brew
辄也16 小时前
git拉取远程分支到本地分支
git
皮克斯的进化之路17 小时前
Git原理+使用(超详细)
git
wrjwww17 小时前
【Git学习笔记】Git常用命令
笔记·git·学习
大乔乔布斯18 小时前
WSL,Power shell 和CMD, Git bash的区别
开发语言·git·bash