Eclipse关联Git的方法和步骤

来源:互联网 发布:做生日快乐的软件 编辑:程序博客网 时间:2024/05/16 08:41

需求:想在Eclipse中进行Git的管理,提交更新,Push,文件还原等

解决方案:安装Eclipse插件,Egit即可,Egit是Eclipse git的简称
操作步骤:
第一步:打开网页http://www.eclipse.org/egit/download/
第二步:选择插件的安装方式,方式一,在线安装,http://download.eclipse.org/egit/updates;方式二,通过应用商店安装,使用Eclipse》Help》Eclipse Marketplace,检索Egit安装
第三步:关联git项目,通过Open perspective打开Git窗口,点击Add an existing local Git Repository to this view,浏览本地项目的项目的文件夹,点击OK进行添加
第四步:通过Open perspective打开Team Synchroninzing窗口,点击Synchronize,选择Git,Destinatin全部选择HEAD,点击Finish。(第四步不是必须)
第五步:现在已经可以通过Eclipse进行Git的管理了,commit,push,文件对比,恢复等。

0 0