美文网首页
VSCode + Git

VSCode + Git

作者: 道阻且长_行则将至 | 来源:发表于2018-08-02 10:16 被阅读22次

下载 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

  • 修改文件
img
  • 切换到 git 标签
  • 暂存更改
img
  • 提交更改
img
  • 推送更改
img

国内还是码云好用些


image.png

相关文章

网友评论

      本文标题:VSCode + Git

      本文链接:https://www.haomeiwen.com/subject/kcljvftx.html