git下载地址:https://git-scm.com/download
安装,一路默认next即可:
安装成功后,鼠标右键桌面有Git Bash Here:

或者命令行,可查到版本号:
git--version

1、查看状态:git status
2、添加:git add .
3、提交:git commit -m "提交信息"
4、推送:git push
1、配置gitpath:
(1)找到为Git安装目录下的gitpath.exe,复制其路径:E:\Git\Git\cmd;

(2)打开vscode设置,搜索git.path,点击:在setting.json中编辑:

设置:"git.path": "E:/Git/Git/cmd/git.exe"

2、提交代码:
如:代码有所改动
点击对号,填写提交信息,并提交:
推送:
网友评论