Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use eclipse to upload code to GitHub

Shulou Source: shulou.com Published: 2022-06-01 19:14:19 10月14日 Update

This article will explain in detail how to use eclipse to upload code to GitHub. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Now the latest version of eclipse has integrated the git plug-in, so you can use it directly. Suppose we have a HelloWorld project to upload to GitHub management:

The first thing to do is to create a warehouse on GitHub. The warehouse name should be the same as the project name:

Description can write whatever you want, and you can choose public or private. Public everyone can see your project, and private can only see it by itself or authorized users.

After you have created it, copy this address down and use it later:

Going back to eclipse, right-click the HelloWorld project (Team-> Share project...):

Check these boxes, create a local warehouse, and finally click finish:

After creating the local warehouse, right-click the project, Team- > Commit....:

In the lower right corner, click the + + sign to temporarily store all files in the local warehouse:

After the local commit, then we push to the remote warehouse, but at this time the push will not work, and the version error will be reported. Let's merge the pull of the remote warehouse with the local one:

Fill in the address just written down by GitHub, fill in the user name and password, and then next all the way:

After the pull is finished, we can push it. Right-click the project: Team- > remote- > push..., still fill in the address, account number and password, and then next:

Select the master branch here, then add spec, and finally click finish:

And then it worked:

The final effect is as follows:

This is the end of the article on "how to upload code to GitHub using eclipse". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Tags: Warehouse project address article code name password more choice no good practical successful content branch user name plug-in effect file article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Shulou Tech Info Docker Shulou Technology