目录​​​​​​​

安装eclipse

注册GitHub

安装git插件EGit

在GitHub上创建仓库

Hello World

上传代码至GitHub

上传完成后在GitHub上查看   ​


只是小白的学习笔记,有错轻喷🥬

  • 安装eclipse

官方网址:Eclipse Downloads | The Eclipse FoundationThe Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 375 open source projects, including runtimes, tools and frameworks.https://www.eclipse.org/downloads/

  • 注册GitHub

https://github.com/https://github.com/

  • 安装git插件EGit

1.在eclipse上安装插件:Help>>Install New Software

点击右侧Add...出现如下界面,输入Name:EGit;Location:http://download.eclipse.org/egit/updates

 勾选所需内容>>Finish>>等待安装完成后会弹出窗口提示重启Eclipse

(等待提示后重启,不要提前关闭Eclipse)

重启后点击左上角Eclipse>> Preferences>> Version Control(Team)>> Git>> configuration 

​ 出现如下界面后,点击右侧Add Entry>>配置信息>>Add>>Apply and Close

Key:user.name;Value:GitHub用户名

Key:user.email;Value: GitHub绑定邮箱

  • 在GitHub上创建仓库

(GitHub官网速度较慢,建议使用客户端,避免连接不上心态炸裂) 

  • Hello World

File>>New>>Project

创建的项目>>New>>Class

编写程序——Hello World 

  • 上传代码至GitHub

1.Share Project

 依次点击>>Finish

 2.提交文件至本地仓库

选择项目>>Team>>Commit>>  >>添加message>>commit

    

   

 3.选择项目>>Team>>Remote>>Push>>填写信息>>Next 

  

  

若使用GitHub网页,URI为GitHub仓库网址,记得填写User和Password

若使用GitHub客户端,点击Local Folder>>选择GitHub仓库本地位置

出现如下界面后Source ref选择第二个>>Add Spec>>Finish

  

  • 上传完成后在GitHub上查看   

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐