加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Visual Studio Code(vscode) git的使用教程

发布时间:2020-12-14 16:41:21 所属栏目:百科 来源:网络整理
导读:本文介绍了Visual Studio Code(vscode) git的使用,分享给大家,具体如下: 1.创建一个github账号 2.在vscode中执行命令 echo "# C-Tests" README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/harryl

本文介绍了Visual Studio Code(vscode) git的使用,分享给大家,具体如下:

1.创建一个github账号

 

2.在vscode中执行命令

echo "# C-Tests" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/harryluo163/C-Tests.git
git push -u origin master

执行时候会让你属于账户密码,vscode

先按照提示去下载git

1.安装

Git:

sudo apt-get install git

全局配置

git config --global user.name "YourName"
git config --global user.email YourName@gmail.com

查看配置

git config user.name
git config user.email


git config --list

或查看一下文件

~/.gitconfig

3.回到vs code打开git工作区就会看到所有代码显示在这里

4.然后按提示随便在消息框里输入一个消息,再按ctrl+enter提交

5.然后把所有暂存的代码push云端

 

6.打开github,发生改变了哦

 

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程小技巧。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读