Eclipse与github

 

  • 首先,确保elipse已经配置好github,请参见上篇初始git
  • 项目  右击--- team  ----share project  ,可以右击create创建一个新的仓库
  • 项目---》右击---》team----》add to index

  • 项目---》右击---》team----》commit,表示发布到本地分支了

  • 项目---》右击---》team----》remote-->push,表示发布到远程了,这里的URl 你可以在GitHub里创建一个仓库

    创建完后,你可以把仓库的http或者是ssh复制到eclipse中,注意protocol要对应url 选择,在下方写入你的github账户和密码,然后next-->然后选择master仓库,并且点击后边的add Sepc,之后下方表格中就会添加了你的push记录,然后next-->finish
  • 后期,如果你的项目改变了,怎么提交到github 呢?
  • team---->add to index
  • team--->commit

  • 扫描二维码关注公众号,回复: 6033065 查看本文章

    team---push

    commit 和commit push 的区别:

    commit:不能单独的push 某一个文件

    commit push:可以单独push 某一个文件

    第一次将远程仓库项目下载到eclipse:

    file ---import ---git ----project from git---->输入用户账号

    更新,将在远程仓库得操作更新到本地

    Team--->pull 

    可能报错:The current branch is not configured for pull No value for key branch.master.merge found in configur

    解决方案:

猜你喜欢

转载自blog.csdn.net/qq_33420835/article/details/84110847