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!

相关推荐
tjl521314_2143 分钟前
Git SSH Host Key Verification Failed 问题排查与解决
运维·git·ssh
嘶哈哈哈3 小时前
[特殊字符] Git 协作指南
git
say_fall3 小时前
【Git 精品详解】企业规范:企业级开发模型、Git Flow、发版流程规范、Code Owner 制度、事故应急回滚
大数据·linux·服务器·git·学习·elasticsearch
江畔柳前堤21 小时前
第13章:docker生产环境部署实战
运维·git·docker·容器·代码复审
GuHenryCheng1 天前
【ESP32】ESP-IDF开发环境搭建(cursor)
git·stm32·单片机·学习
kaka。。1 天前
GIT安装+代码推送
git
明理的路灯1 天前
安装 git 开发工具
git
偏爱自由 !1 天前
5:IDEA中git的使用--git fetch 和 git pull 和解决冲突
git·elasticsearch·intellij-idea
偏爱自由 !1 天前
2:IDEA中git的使用--基础操作
java·git·intellij-idea
青山木2 天前
快速搭建免费的个人博客网站:Hexo + GitHub Pages + Butterfly 完整指南
git·github