If no local download git, can refer https://www.cnblogs.com/zhangyaolan/p/11105330.html
If no local git and github connected implemented, reference may https://www.cnblogs.com/zhangyaolan/p/11106091.html
vscode git tool itself is integrated, so you can not git command mode and can one-click way to achieve code delivery
1, vscode configure git
First make sure that the environment variables added git path
My side remote warehouse has been built, click SSH
Local disks to build a local repository, attention: local repository name should be consistent with the github repository name, for example,
Open Git Bash Here, line by line in the input code block in the directory
echo "# purchase_project" >> README.md git init git add README.md git commit -m "first commit" git remote add origin [email protected]:xiaolanzi/purchase_project.git git push -u origin master
It appears as shown below, indicating successful
在vscode工具中,打开本地仓库目录,使用终端,输入git status,表示vscode已配置好git
git status
在项目中新建一个新文件CHANGELOG.md,使用git命令推送到github,如下图所示
再次回到github,查看github相应的仓库,它与本地仓库内容同步,说明配置成功,如图所示,