GitHub Tutorial for Eclipse

1. Download the egit plugin

Open Eclipse, git requires eclipse authorization, and the installation package of egit cannot be downloaded through the web page. Open eclipse→help→install new software→add in the menu bar, enter egit in the Name column, http://download.eclipse.org/egit/updates/ in the location column, and click ok to download. After the download is complete, you will be prompted to restart eclipse; if you already have it, you don't need it.

 

2. Generate the public key in Eclipse and add it to the GitHub Repository.

In the menu bar, open window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...

Generate the public key of SSH in GitHub by: edit your profile -> ssh key -> Add SSH Key Add SSH Key, copy the public key generated above, and save it.

3. Import an existing project
Open a project, right-click on the project name, click team→share project, and import your project into a git folder.

4. Submit
Right-click on the project –> team –> commit. Commit is to commit to the local git library, and push is to synchronize to github.

Enter your GitHub username and email in the pop-up window

Submit the file to the local and push it to the server

 

Then you need to enter the repository address of your project on GitHub. If not, you need to create a new project. The steps are as follows:

Enter the URL address above, along with your username and password

然后等待Eclipse帮你把项目提交就行了

 

 

5、提交时可能会出现不能连接的错误,请参考

dust项目托管github过程

使用命令行生成一个本地的ssh,建立连接后再用eclipse提交代码。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326483330&siteId=291194637