vscode git 提交数据到分支

    1、vscode菜单--终端--新建终端

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

  git config --global credential.helper store

  your name:git给你分配的用户

  your email:git上你的email


2、修改代码后,先commit(提交)

vscode git 提交数据到分支
3、输入本次修改的说明
vscode git 提交数据到分支

4、push到服务器上的分支上,这里我们建的是dev,一般不对master进行修改

vscode git 提交数据到分支
vscode git 提交数据到分支

说明:先安装好git,然后vscode中配好git的位置,下面是windows中的操作。

vscode git 提交数据到分支

vscode git 提交数据到分支