How to upload a project to a Github repository from Eclipse

Within the digital world, it is possible to use different tools that will help us with different situations and aspects, such as the use of Eclipse Git , which is used in various projects. Git has become very popular in recent times, due to the fact that it has become a standard product as version control software.

Eclipse is a simple tool which you can integrate your project into a Git repository . Within this post, we want to help you with the creation and understanding of this platform which we know you will love.

Start creating your project step by step

In order to start with the creation of your project, the first thing you must do is create a new project, for which you must start by entering File , and then enter the ” New” tab and continue entering the Java Project section, already which is where we will proceed to create a new project, to which you can put whatever name you want.

When we have created said project, you must click on the “Team” tab with the right button and we proceed to press on the “ Share Project” section, in which we will begin to upload your project to Git.

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

Once ready, we must mark the option ” Use or create repository ” in which we will begin to select the project we want from the list below and once completed we will click on the ” Create Repository ” button in which we will create a new repository.

Once this is finished, we must click on the “Finish” button and in this way we can have our project at our disposal, just like a project within Git.

When we have created our project within the Git platform , we will not have any “commit” available so it will not be associated with our project, for this reason, just to the right of the name, we will see ” no-head “.

How to add different versions to our project

What is called ” commits ” within Git, does not have any direct translation, which reflects the exact meaning of it, so its literal translation can be described as “fact”

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

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

There we can see that a window appears in which, we must write a message, with which it is easier for us to carry out a control ourselves and thus know which is the version in question, and in this way select in the lower section those files that will be marked as modified.

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

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

 

Leave a Comment