VSCode中使用git
2020-08-23 本文已影响0人
雨虹2020
一、Git 安装及配置
1 下载git https://git-scm.com/downloads,安装,会自动添加环境变量。
2 配置git 用户名密码
打开git bash,执行以下命令:
git config --global user.name "username"
git config --global user.password "email"
查看配置:
git config --list
配置错误要修改:
用--replace-all
命令,如git config --replace-all user.name "username"
二、VSCode中使用git
1 git add 点击git视图中的+按钮

2 git commit 点击git视图中的对号按钮,输入commit comment

3 使用其他命令

还是使用命令行方便