How to Use Git in the DVT Eclipse IDE - How to Work With Git From DVT
Overview
This video provides a quick overview of the available EGit plugin features.
Extended documentation is available on-line, either in the EGit User Guide or in various tutorials:
https://wiki.eclipse.org/EGit/User_Guide
http://www.vogella.com/tutorials/EclipseGit/article.html
Details
After setting up Git for your project, you will be able to perform any Git operation from within the DVT Eclipse IDE. This article provides a quick overview of the available Git plugin features. Extended documentation is available online, either in the EGIT User Guide or in various tutorials.
Project Explorer View
The Project Explorer view shows various decorations, for example, tracked files, new files, or modified files. The project's label shows the current branch and the number of commits ahead or behind the remote server.
Several actions are available in the right-click menu, for example, comparing with the index or with a particular commit. Similar actions are available from the editor.
Git Perspective
A dedicated perspective aggregates several Git-related views.
To open the Git perspective:
- Go to Window > Perspective > Open Perspective > Other...
- Choose Git.
Repositories View
The Repositories view lets you browse the tags, branches, and working directory for all available repositories.
By right-clicking, you can easily create a new branch or switch to a different one. You can also push your commits to a remote server.
History View
Use the History view to visualize commits and branches.
Right-click on a commit to create a new branch or a tag, or to perform cherry-pick
, reset
, or revert
actions.
Staging View
The Staging view is essential for the Git workflow. Here you can easily stage your changes, double-click to view diffs and resolve merge conflicts, add a commit message, and even push directly to the remote server.