惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 滴水冰寒

阿里云linux--常用命令 electron桌面应用 wepack打包时出错不压缩代码及使用es7(async await)新语法问题 npm install 时发生错误 create-react-app 后使用babel/polyfill webpack3.x--react,jsx多页配置 webpack--打包scss webpack--打包和压缩css react--2.react-redux react--1.创建项目 百度智能语音引用1 vue--1.环境搭建及创建项目 Python内置的服务器的使用 ionic3问题记录 ionic3自定义android原生插件 maven学习--1.项目结构及简单使用 maven学习--1.安装与配置 mybatis学习笔记1.零碎记录 mysql学习--1.事务
vscode和gitee的使用
滴水冰寒 · 2018-11-19 · via 博客园 - 滴水冰寒

1.安装git 

git安装成功后,再vscode用户设置中进行相关配置
配置后如果不能使用,可能是因为没有配置git全局环境变量

2.生成公钥

$ ssh-keygen -t rsa -C "youremail@youremail.com"  

# Generating public/private rsa key pair...
# 三次回车即可生成 ssh key

3.查看公钥

$ cat ~/.ssh/id_rsa.pub

ssh-rsa ........ youemail@youemail.com

3.注册gitee账号,并绑定刚才生成的公钥

4.平台上绑定后,在终端输入

#Gitee
$ ssh -T git@gitee.com

-------------------------------(或)

#GitHub
$ ssh -T git@github.com

第一次绑定的时候输入上边的代码之后会提示是否continue,输入yes后程序会自动连接,如果要求登录,直接输入登录信息即可。

再次执行上面的命令,检查是否成功连接,如果返回一下信息,则表示添加成功

$ ssh -T git@gitee.com
Hi lst! You've successfully authenticated, but GITEE.COM does not provide shell access.

5.基本的终端设置,在向平台提交代码的时候,让git知道你是谁

$ git config --global user.name "yourname"
$ git config --global user.email "youremail@youremail.com"

6.在gitee平台上新建一个空项目(一般包含readme.md文件)

项目地址如:https://gitee.com/lvshoutao/giteeTest

7.把平台上的项目clone到本地

cd 你的代码目录

git clone https://gitee.com/lvshoutao/giteeTest.git

8.用vscode打开项目就可以了

9.修改代码后(点击源代码管理:git),

   (1)先暂存修改(点击更改右边的+号),

   (2)再提交到本地(点击头部的√号),

   (3)再推送到服务端(点击右边的更多按钮,在下拉菜单中点击“推送”就可以了)。

转自https://www.cnblogs.com/yiven/p/8465054.html