Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding Git and how to use EGit (git eclipse plugin)

Tags:

git

egit

I just started working on a project that uses git as a repository. I've actually never used a version control system before as I'm a devloper team of one. From what I understand if you create a branch of a local repository, select that branch in elcipse & then make changes to the code. You should then be able to select the original master branch & you wouldn't then see those changes provided you hadn't merged.

What's confusing me is that when I switch back to the master the changes I made in the new branch are in there...even though I haven't merged.

I'm obviously misunderstanding the whole thing....any ideaS'S Thanks.

like image 410
justify Avatar asked Feb 14 '11 13:02

justify


People also ask

How do I use EGit in Eclipse?

Open the Eclipse Import wizard (e.g. File => Import), select Git => Projects from Git and click Next. Select “URI” and click next. Now you will have to enter the repository's location and connection data. Entering the URI will automatically fill some fields.


1 Answers

I think a great resource for learning Git is Pro Git. It's a book, but you can read it online. The first chapters teach you the basics on Version Control and git basics.

Also, check this question, where some git tutorials are listed.

Even if you are looking for a quick start guide, I encourage you to take the time to read at least the first three chapters of Pro Git. This will give you a good general understanding of how to use a version control system, some git basics, and the power of branching and merging. Then check out the tutorials on the second link I posted.

Regarding egit, there's some documentation on its official site. Once you get the hand on git, it will be easier to learn how to use egit.

like image 146
Fernando Briano Avatar answered Oct 16 '22 04:10

Fernando Briano