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!

相关推荐
Arva .7 小时前
开发准备之日志 git
spring boot·git·后端
奇某人8 小时前
【嵌入式】【GIT】终端中文乱码修复
git
可爱的蜗牛牛8 小时前
上传本地git所有历史记录到已有远程仓库
git
idaibin10 小时前
"Git 多仓库用户身份自动切换与隐私保护指南
git·github
小何好运暴富开心幸福11 小时前
C++之日期类的实现
开发语言·c++·git·bash
im_AMBER12 小时前
Web 开发 24
前端·笔记·git·学习
银安13 小时前
Git篇(4):分支(Branch)与引用(Reference)
git
~央千澈~13 小时前
宝塔服务器面板部署安装git通过第三方应用安装收费怎么办—bash: git: command not found解决方案-优雅草卓伊凡
git
无言以对,沉默不语,随你随你。14 小时前
【解决办法】GitBash不能在任意文件夹打开
经验分享·笔记·git
stark张宇16 小时前
告别Git恐惧症!一套课程搞定Win/Mac/Linux三端配置与核心原理
git·架构·github