下载 git
设置全局配置
git config --global user.name "your name"
git config --global user.email "your email"
初始化项目
cd d:/var/www/php //首先指定到你的项目目录下
git init
touch README.md
git add README.md
git commit -m "first commit"
// 用你仓库的url,vscode.git中vscode为仓库名称,使用时必须先创建
git remote add origin https:\\github.com/youtname/vscode.git
// 提交到你的仓库
git push -u origin master
记住密码
git config --global credential.helper store //在Git Bash输入这个命令就可以了
VSCode 使用 Git
- 修改文件

- 切换到 git 标签

- 暂存更改

- 提交更改

- 推送更改

国内还是码云好用些
image.png
网友评论