eclipse create a local git repository, and updates the local git repository to a remote server

目的:将本地代码更新到远端服务器
1.点击eclipsewindows->preference->team->git->Configuration配置git的基础环境
2.点击add entry在里面添加user.email="注册邮箱";user.name="注册用户名"

eclipse create a local git repository, and updates the local git repository to a remote server

3.新建一个Maven项目,右键teamshare Project然后项目提交到本地仓库

eclipse create a local git repository, and updates the local git repository to a remote server

点击下面的`create repository`就完成了本地仓库的创建

eclipse create a local git repository, and updates the local git repository to a remote server
eclipse create a local git repository, and updates the local git repository to a remote server

将文件提交到本地仓库

eclipse create a local git repository, and updates the local git repository to a remote server

右键点击项目选择Team->Commit

eclipse create a local git repository, and updates the local git repository to a remote server
eclipse create a local git repository, and updates the local git repository to a remote server

4.将本地仓库推送到远程仓库

若是选择Commit提交后再通过项目右键team-->remote-->push

eclipse create a local git repository, and updates the local git repository to a remote server
eclipse create a local git repository, and updates the local git repository to a remote server
eclipse create a local git repository, and updates the local git repository to a remote server

选择源git分支与目标分支后点击Add Spec

eclipse create a local git repository, and updates the local git repository to a remote server

eclipse create a local git repository, and updates the local git repository to a remote server
eclipse create a local git repository, and updates the local git repository to a remote server

Choosing to skip selected above commit And Push

Guess you like

Origin blog.51cto.com/1929297/2404993