Git 版本控制 之 STS

1、项目与gitee互联
window–>Preferences 搜索ssh
Key Management
Generate RSA Key…
Save Private Key
保存公钥(id_rsa.pub)
然后到gitee 设置中SSH公钥添加
现在sts项目与gitee就实现了互联
2、sts上传到远程仓库
首先复制项目的ssh地址一般为[email protected]:xxxx
然后右键项目工程 Team –> Share Project
打钩Use or creat repo~
Create Repo –>选中并打钩要上传的项目–>Finish
项目出现一个NO-HEAD
Team–>Commit–>++–>Commit
Team–>Remote–>Push
url:ssh地址
Protocal:ssh
next
source ref :选择分支–>Add Spec
Force Update(打钩为覆盖更新)
Finish
到Gitee查看版本已经控制

猜你喜欢

转载自blog.csdn.net/weixin_42557264/article/details/81370151