How To Upload A Project To A Github Repository From Eclipse

green icon github

Within the digital world can use different tools to help us with different situations and aspects, such as the use of Eclipse Git , which is used in various projects. Git has taken great popularity in recent times due to the fact   become a standard product as version control software.

Eclipse is a simple href=””> tool which can integrate your project within Git repository . In this post, we want to help with the creation and understanding of this platform which we know are going to worship.

logo github white background

Start by creating your project step by step

To start creating your project, the first thing you should do is create a new project, which should start entering File , then from entering the tab “ new “ and continue entering the section Java project, and that is where we will proceed to create a new project, which can place you the name you want.

When we created the project, you must click on the “Team” tab with the right mouse button and proceed to press the section “ Share Project” in which start up your project Git.

There you will see a window in which you began to share your project; likewise,   within this part, you can start with the selection of what they want to share in Git.

A ready time, we must check the “ Use or create repository ” in which we will begin to select the project you want from the list below and once completed we will click on the button “ Create Repository “in which we will create a new reposito.

Once completed this, we click the “Finish” button and this way we have at our disposal our project as a project in Git.

When we created our project within the href=””> not have available no “commit” so that it is not associated in our project, for that reason, just to the right of the name, we will see “ non-head “.

How to add different versions to our project

What is termed as “ commits ” in Git does not own any direct translation, which reflect the exact meaning of it, so its literal translation, it is possible to describe it as “fact”

But is the same, is seen as a version or image of the project, which helps us save the state of the project, once we make different changes about himself in order to return to the original.

If you want to add a “commit” the first thing to do is to click just right-click on the Project and proceed to select the “ Team option “once there, we will see different options, in which we must select the” Commit “to thereby create a new version of the project.

java ellipse icons

Here we see displayed a window in which we write a message with which we facilitate the power take ourselves control and thus know which version of which it is, and thus select those files in the lower section they will be marked as modified.

By clicking on the section “Commit” see who created the first version of the program you are working and everything will be more clear. There we will see the state “ No-Head ” in which likewise, we will see how our project has changed to “Master” with which we know we are on the main project.

Now we shall add another line to the project and we proceed to create another commit which will stand as master. If you are looking for is to see previous versions must click on the project with the right mouse button and proceed to select “ Compare with ” then “Commit” and from there, select the point at which we want to compare.

Deja un comentario