git使用之eclipse使用
初始化GIT仓库
对于Eclipse已有的项目,如果想要初始化为git仓库,可以选中项目右键,选择
Team-->Share Project
然后在新弹出的界面中勾选use or create repository
,选中项目,点击create repository
,点击finish完成。
提交项目到远程仓库
在github中新建一个空的仓库,仓库名与项目名保持一致,然后在Eclipse中选中项目右键,选择Team-->commit
在新弹出的界面中,填写提交信息,下面的文件全部勾选或者根据需要选择,点击commit and push
按钮进行提交。

将github中项目的https地址复制到URI中,然后选择Protocol为https,在下面输入远程服务器的帐号和密码,可以勾选store in secure store
进行帐号保存,点击Next

下一步继续点击Next,然后点击finish完成。

push完成后刷新远程仓库查看项目代码是否成功上传。

本文作者:黎华扬
本文链接:https://www.cnblogs.com/galenblog/p/12360004.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步