如何在Eclipse中配置Git

1.JDK安装
https://www.oracle.com/java/technologies/javase/javase-jdk
8-downloads.html
(1)watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16
(2)点击1打勾->点2下载

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16
(3)配置环境Windows系统的环境变量配置窗口:WIN7:控制面板
→系统和安全→系统→高级系统设置→环境变量,在系统变量中添加
或编辑环境变量的值。

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_17,color_FFFFFF,t_70,g_se,x_16

 (4)新建环境变量3个

 watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16 

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16 

 (5)测试环境 运行cmd进入图示界面

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_14,color_FFFFFF,t_70,g_se,x_16

 (6)在>后输入javac 出现以下界面即为成功

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 2.创建eclipse项和类

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (1)点击file->new->java project->输入name-选择1.8->finish

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_17,color_FFFFFF,t_70,g_se,x_16

 watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (2)右键项目->new->class

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (3)输入name->点击public前方格->finish

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_17,color_FFFFFF,t_70,g_se,x_16

 (4)输入以下代码并运行

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_12,color_FFFFFF,t_70,g_se,x_16

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16(5)窗口出现代码运行结果watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_10,color_FFFFFF,t_70,g_se,x_16 

 3.开启personal access tokens
(1)注册github

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (2)到设置

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (3)点击developersettings

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (4)点击下面箭头->点击右侧generate new token

 

 watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16 

 (5)输入note->选择expiration->下面的勾全部打上

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 

 (6)点击generate token完成

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_14,color_FFFFFF,t_70,g_se,x_16

 (7)将下面绿色内的地址复制下来

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 3.创建github远程库

(1)点击猫头回到主页->点击加号new repository

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (2)输入name->点击绿色完成

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (3)出现以下界面完成

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 4.用eclipse创建本地库

(1)右键项目->team->shareproject

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (2)点击1处方格(要有勾)->点击2处->点击finish

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 5.上传本地库到github
(1)右键项目->team->commit

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (2)点击1处加号->2处输入数字->点击commit

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (3)右键项目->remote->push

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (4)复制github中的地址

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (5)将复制的地址复制到URI->在三处输入github的昵称密码->勾选store->next

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (6)点击sourceref右侧箭头点master

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 (7)点击右侧add->点击方格打勾->finish

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA5LiN5oOz5omT5Luj56CB5ZWm,size_20,color_FFFFFF,t_70,g_se,x_16

 

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值