美文网首页
使用vscode +GitLens 插件操作github 远程库

使用vscode +GitLens 插件操作github 远程库

作者: xx_Zero | 来源:发表于2019-07-15 15:09 被阅读0次

1、设置项目本地目录

首先在vscode的插件管理中搜索gitlens并安装,在vscode中打开终端,进入本地项目目录E:\project\test;

2、git基础配置

执行git init 命令进行初始化

git config user.name "happy"//git config --global 设置全局配置不带--global 为当前项目配置

git config user.email "111@sina.com"

git config credential.helper store// 配置记住用户密码

git remote add origin https://github.com/dreamhappy/mapEdit.git//配置自己的远程代码仓库地地址

//设置错误可以用git remote remove origin 删除设置重新配置或 git remote set-url origin 进行修改

3、git 远程代码获取

git pull origin master 从远程库拉取项目

4、vscode 代码编辑

编辑

5、填写修改注释

填写做了什么

6、推送到远程仓库

选推的代码仓库地址

相关文章

网友评论

      本文标题:使用vscode +GitLens 插件操作github 远程库

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