{"id":74518,"date":"2018-03-15T01:00:34","date_gmt":"2018-03-14T23:00:34","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=74518"},"modified":"2023-12-11T10:36:52","modified_gmt":"2023-12-11T08:36:52","slug":"git-version-control-with-eclipse-egit-tutorial","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html","title":{"rendered":"Git version control with Eclipse (EGit) Tutorial"},"content":{"rendered":"<h2>1. What is EGit ?<\/h2>\n<p><a href=\"https:\/\/git-scm.com\/\">GIT<\/a> is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it isn&#8217;t really easy to work with when it comes to using the command line interface for versioning. To solve this difficulty, the developers came up with creative GUI based tools called the GIT clients. GIT clients provide a graphical interface to execute the commands without actually typing them. In addition to that, they also provide interfaces to visualise the branching of files, and projects as well as compare them.<\/p>\n<p>However, even the GIT client pose a problem. Most of the developers prefer to use IDEs like Eclipse, Netbeans or IntelliJ to code. With GIT client running as a separate tool in addition to the IDE, it becomes difficult to manage the files within and outside the workspace. One would continuously need to keep switching between IDE and GIT client to manage versioning. EGit is the answer to this problem.<\/p>\n<p><a href=\"http:\/\/www.eclipse.org\/egit\">EGit<\/a> is a plugin for Eclipse IDE. <a href=\"http:\/\/www.eclipse.org\/egit\">EGit<\/a>\u00a0is a GIT versioning management plugin available for free in the <a href=\"http:\/\/www.eclipse.org\/egit\/download\/\">Eclipse Plugin repository.<\/a>\u00a0EGit provides a fully integrated solution for enabling GIT versioning in the project. It integrates into Eclipse and allows a whole bunch of features ranging from Git Repository cloning to Git Pull, Push, Merge, Rebase, Commit and Reset. It also provides an easy branch management solution to manage branching locally as well as on the remote repository.<\/p>\n<h2>2. Installing EGit<\/h2>\n<p><strong>Pre-requisites<\/strong><\/p>\n<ol>\n<li><a href=\"https:\/\/www.eclipse.org\/downloads\/\">Eclipse Luna or later version<\/a><\/li>\n<li><a href=\"https:\/\/git-scm.com\/downloads\">Git command line tools\u00a0<\/a><\/li>\n<\/ol>\n<p>EGit could be easily installed just like any other plugin. The details about installing EGit are discussed further.<\/p>\n<p>Below are detailed steps of installing GIT using the update URL provided <a href=\"http:\/\/www.eclipse.org\/egit\/download\/\">here<\/a>:<\/p>\n<ol>\n<li>Copy the update site URL from the provided link and navigate to Help -&gt; Install Software in Eclipse\n<p><figure id=\"attachment_74621\" aria-describedby=\"caption-attachment-74621\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.04.49-PM.jpeg\"><img decoding=\"async\" class=\"wp-image-74621 size-full\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.04.49-PM.jpeg\" alt=\"\" width=\"800\" height=\"404\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.04.49-PM.jpeg 800w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.04.49-PM-300x152.jpeg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.04.49-PM-768x388.jpeg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-74621\" class=\"wp-caption-text\">Eclipse Install Software<\/figcaption><\/figure><\/li>\n<li>Paste in the URL as shown in the figure below and press Enter\n<p><figure id=\"attachment_74622\" aria-describedby=\"caption-attachment-74622\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Paste-update-URL-e1520606919949.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74622\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Paste-update-URL-e1520606919949.jpg\" alt=\"\" width=\"800\" height=\"591\" \/><\/a><figcaption id=\"caption-attachment-74622\" class=\"wp-caption-text\">Enter Update URL<\/figcaption><\/figure><\/li>\n<li>Select all the components to get a full pack of features provided by EGit as shown in the image above<\/li>\n<li>Proceed by pressing Next and accepting the license agreement<\/li>\n<\/ol>\n<p>Once the installation is completed, Eclipse would require a restart to load the features fully. Hence, restart Eclipse and check the installation status by navigating to <strong>Eclipse\/Help<\/strong> -&gt;\u00a0<strong>About Eclipse\u00a0<\/strong>and press the\u00a0<strong>Installation Details <\/strong>button. The window that opens up should display a list of tools that are currently installed into\u00a0Eclipse. Check for &#8220;GIT Integration For Eclipse&#8221; in the list to ascertain that EGit has been installed successfully.<\/p>\n<p><figure id=\"attachment_74623\" aria-describedby=\"caption-attachment-74623\" style=\"width: 708px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.43.35-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74623\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.43.35-PM.jpg\" alt=\"\" width=\"708\" height=\"654\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.43.35-PM.jpg 708w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-08-at-11.43.35-PM-300x277.jpg 300w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/a><figcaption id=\"caption-attachment-74623\" class=\"wp-caption-text\">EGit Installation Verification<\/figcaption><\/figure><\/p>\n<h2>3. Working with EGit<\/h2>\n<p>In order to get started with EGit, there are a few configurations to be done that will make it easy to work with the files and GIT repository. Let&#8217;s get the configurations done before getting start with a demo repository.<\/p>\n<h3>3.1 Adding the GIT toolbar to your current perspective<\/h3>\n<p>The GIT toolbar contains buttons for the most basic operations like Pull, Push, Commit, Reset and few others. The toolbar would make it easier to manage the files rather than navigating each time through the popup menu. In order to enable GIT toolbar, navigate to <strong>Window -&gt; Perspective -&gt; Customize Perspective.<\/strong><\/p>\n<p><figure id=\"attachment_74625\" aria-describedby=\"caption-attachment-74625\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.29.24-PM.jpeg\"><img decoding=\"async\" class=\"size-full wp-image-74625\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.29.24-PM.jpeg\" alt=\"\" width=\"800\" height=\"297\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.29.24-PM.jpeg 800w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.29.24-PM-300x111.jpeg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.29.24-PM-768x285.jpeg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-74625\" class=\"wp-caption-text\">Customize Perspective<\/figcaption><\/figure><\/p>\n<p>Select the GIT tool in Action Set Mapping section to display all the available GIT toolbar options.<\/p>\n<p><figure id=\"attachment_74626\" aria-describedby=\"caption-attachment-74626\" style=\"width: 784px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.36.21-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74626\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.36.21-PM.jpg\" alt=\"\" width=\"784\" height=\"511\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.36.21-PM.jpg 784w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.36.21-PM-300x196.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.36.21-PM-768x501.jpg 768w\" sizes=\"(max-width: 784px) 100vw, 784px\" \/><\/a><figcaption id=\"caption-attachment-74626\" class=\"wp-caption-text\">GIT Toolbar Selection<\/figcaption><\/figure><\/p>\n<p>Once selected, the GIT toolbar should be visible in the main window of Eclipse. Now we can proceed to clone a GIT repository. In order to clone a GIT repository, we need to open up GIT Repository view. Open the GIT repository view using\u00a0<strong>Window -&gt; Show View -&gt; Other. <\/strong>Search for GIT repositories and click OK. A window similar to the one below will be shown.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><figure id=\"attachment_74627\" aria-describedby=\"caption-attachment-74627\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Git-Repository-Window.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74627\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Git-Repository-Window.jpg\" alt=\"\" width=\"800\" height=\"369\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Git-Repository-Window.jpg 800w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Git-Repository-Window-300x138.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Git-Repository-Window-768x354.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-74627\" class=\"wp-caption-text\">Git Repository Window<\/figcaption><\/figure><\/p>\n<h3>3.2 Cloning GIT Repository<\/h3>\n<p>In order to clone the GIT repository, click the <strong>Clone a GIT repository\u00a0<\/strong>link in the window shown above. Copy the URL of your remote repository and paste it into the window that opens up as shown below. EGit supports all the popular communication protocols namely https, http, ftp, git, ssh, sftp and file. Enter the remote repository Username and Password and click Next.<\/p>\n<p><figure id=\"attachment_74628\" aria-describedby=\"caption-attachment-74628\" style=\"width: 558px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.46.18-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74628\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.46.18-PM.jpg\" alt=\"\" width=\"558\" height=\"568\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.46.18-PM.jpg 558w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.46.18-PM-295x300.jpg 295w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.46.18-PM-70x70.jpg 70w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><figcaption id=\"caption-attachment-74628\" class=\"wp-caption-text\">Cloning GIT Repository<\/figcaption><\/figure><\/p>\n<p>The next window will list the branches that are available for the corresponding repository. As of now, there is only master branch pushed on to the repository. Select the branch that you need to clone into your local workspace and click next. Select the directory to store the project and click Finish. It might take up some time to clone the repository and download the files to your local system. Once the repository is cloned, it will appear in the Git Repositories window.<\/p>\n<h3>3.3 Importing the project<\/h3>\n<p>If the repository cloned above contains projects compatible with Eclipse, the project could be imported easily by right clicking and selecting\u00a0<strong>Import Projects<\/strong> from the popup menu as shown in the image below.<\/p>\n<p><figure id=\"attachment_74629\" aria-describedby=\"caption-attachment-74629\" style=\"width: 781px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.59.02-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74629\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.59.02-PM.jpg\" alt=\"\" width=\"781\" height=\"644\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.59.02-PM.jpg 781w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.59.02-PM-300x247.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-8.59.02-PM-768x633.jpg 768w\" sizes=\"(max-width: 781px) 100vw, 781px\" \/><\/a><figcaption id=\"caption-attachment-74629\" class=\"wp-caption-text\">Import Cloned Project<\/figcaption><\/figure><\/p>\n<p>The project will appear in the Package Explorer\/Project Explorer if the corresponding window is open. The project is now connected to the remote repository and all the operations that could be done using GIT command line tools can now be done directly from Eclipse IDE.<br \/>\n[ulp id=&#8217;qqpFiv5a5W384Wlg&#8217;]<br \/>\n&nbsp;<\/p>\n<h3>3.4 Creating a new branch<\/h3>\n<p>Once the project is imported, the developer usually starts working on a task by creating a separate branch. A new branch can be easily created by right clicking the project and navigating to\u00a0<strong>Team -&gt; Switch To -&gt; New Branch.\u00a0<\/strong>This will open up a new window asking for the branch name. Enter the branch name and press Finish to switch to this new branch.<\/p>\n<p><figure id=\"attachment_74630\" aria-describedby=\"caption-attachment-74630\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM.jpeg\"><img decoding=\"async\" class=\"size-full wp-image-74630\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM.jpeg\" alt=\"\" width=\"800\" height=\"785\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM.jpeg 800w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM-300x294.jpeg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM-768x754.jpeg 768w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.04.32-PM-70x70.jpeg 70w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><figcaption id=\"caption-attachment-74630\" class=\"wp-caption-text\">Switch to New Branch<\/figcaption><\/figure><\/p>\n<p>This new branch is saved locally and will not be available on the remote repository until it is pushed to the repository. The developer can freely start work on the current branch and commit the changes as and when required.<\/p>\n<h3>3.5 Pushing the branch to the remote repository<\/h3>\n<p>The branch can be immediately pushed to the remote repository by following the navigation shown in the image below.<\/p>\n<p><figure id=\"attachment_74632\" aria-describedby=\"caption-attachment-74632\" style=\"width: 670px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.09.09-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74632\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.09.09-PM.jpg\" alt=\"\" width=\"670\" height=\"800\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.09.09-PM.jpg 670w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.09.09-PM-251x300.jpg 251w\" sizes=\"(max-width: 670px) 100vw, 670px\" \/><\/a><figcaption id=\"caption-attachment-74632\" class=\"wp-caption-text\">Push the branch to repository<\/figcaption><\/figure><\/p>\n<p>Once pushed, the branch will be available on the remote repository for others to clone. Whenever a new repository is pushed, the Push results window that opens up, will indicate that a new branch has been created on the remote repository as shown in the image below.<\/p>\n<p><figure id=\"attachment_74636\" aria-describedby=\"caption-attachment-74636\" style=\"width: 608px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.04.39-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74636\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.04.39-PM.jpg\" alt=\"\" width=\"608\" height=\"438\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.04.39-PM.jpg 608w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.04.39-PM-300x216.jpg 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/a><figcaption id=\"caption-attachment-74636\" class=\"wp-caption-text\">Pushing new branch<\/figcaption><\/figure><\/p>\n<p>The developer can begin with the changes in the files now. Whenever a file gets changed, EGit keeps tracking the changes just like GIT tools.<\/p>\n<h3>3.6 Tracking the file changes and Committing the files<\/h3>\n<p>The files for which the code has been changed can be easily viewed from the\u00a0<strong>GIT Staging\u00a0<\/strong>window. To open the Git Staging window, follow the steps similar to opening the GIT repositories view. Navigate to\u00a0<strong>Window -&gt; Show View -&gt; Other -&gt; Git Staging<\/strong><\/p>\n<p>The GIT staging will contain a list of files that contain the changes. There are 3 main sections \u00a0in the GIT staging window.<\/p>\n<p><figure id=\"attachment_74633\" aria-describedby=\"caption-attachment-74633\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.16.45-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74633\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.16.45-PM.jpg\" alt=\"\" width=\"820\" height=\"458\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.16.45-PM.jpg 820w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.16.45-PM-300x168.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-9.16.45-PM-768x429.jpg 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-74633\" class=\"wp-caption-text\">GIT Staging Window<\/figcaption><\/figure><\/p>\n<ol>\n<li><strong>Un-staged Changes:\u00a0<\/strong>The files which have been changed but not yet added to the Index for committing the files<\/li>\n<li><strong>Staged Changes:\u00a0<\/strong>The files which have been changed and are ready to be committed<\/li>\n<li><strong>Commit Message:\u00a0<\/strong>Message to be added during commit to inform the team and keep a track about what changes are being committed.<\/li>\n<\/ol>\n<p>One would often need to view the changes done to the files compared to the existing files in the remote repository. This is the right place to view the changes in the files. In order to compare the files with the last committed file, just double click the file in this window. It will open up the Eclipse comparison tool to display the changes that have taken place so far compared to the previously committed version.<\/p>\n<p>The files can also be compared with the HEAD revision by navigating to\u00a0<strong>Compare With -&gt; Head Revision\u00a0<\/strong>by right clicking the file in the package\/project explorer. Once the code changes reach a logical end, the developer can commit the changes locally by adding the files to the Index and clicking the\u00a0<strong>Commit\u00a0<\/strong>button in the GIT staging window shown above.<\/p>\n<p>In order to add the files to the index, there are two possible ways:<\/p>\n<ol>\n<li>Right click the project and navigate to\u00a0<strong>Team -&gt; Commit<\/strong>: This method will add all the un-ignored files containing changes to the index for committing. The same process can be followed for specific file or packages too. It would ultimately open up the GIT staging window.<\/li>\n<li>Open the\u00a0<strong>Git\u00a0<\/strong><strong>Staging\u00a0<\/strong>window by following the instruction discussed above. In the un-staged changes section, right click the file which you need to add to index or commit and select\u00a0<strong>Add to Index<\/strong>. This will move the file from Unstaged changes to the Staged changes area.<\/li>\n<\/ol>\n<p>Once the files are ready to be committed, add the description for the commit and click the Commit button. This will commit the changes to the local repository.<\/p>\n<h3>3.7 Pushing the changes to the remote repository<\/h3>\n<p>In order to make the changes available at the remote repository, there are two ways:<\/p>\n<ol>\n<li>Select the\u00a0<strong>Commit and Push\u00a0<\/strong>button from the GIT staging window instead of\u00a0<strong>Commit\u00a0<\/strong>button. This will push the changes along with committing them.<\/li>\n<li>Right click the project in Package\/Project explorer. Navigate to\u00a0<strong>Team -&gt; Push to Upstream.\u00a0<\/strong>This will push the <strong>committed<\/strong> changes to the remote repository.<\/li>\n<\/ol>\n<p>Once pushed, the changes can be viewed in the remote repository as shown in the image below.<\/p>\n<p><figure id=\"attachment_74637\" aria-describedby=\"caption-attachment-74637\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.10.37-PM.jpg\"><img decoding=\"async\" class=\"wp-image-74637\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.10.37-PM.jpg\" alt=\"\" width=\"820\" height=\"251\" \/><\/a><figcaption id=\"caption-attachment-74637\" class=\"wp-caption-text\">Pushed Remote Repository<\/figcaption><\/figure><\/p>\n<h3>3.8 Pulling the latest changes<\/h3>\n<p>There are two scenarios where one might need to pull the changes from the remote repository.<\/p>\n<ol>\n<li>There might be scenarios where certain changes get committed to the branch directly from the repository or by other developers. In such cases, the developer working with the branch cannot push the files until the developer has <strong>pulled\u00a0<\/strong>the latest changes.<\/li>\n<li>The developer might be looking to take the latest changes from a master branch or a parent branch in order to enhance corresponding features or use the newly developed features in the current branch<\/li>\n<\/ol>\n<p>In the first case, the developer can click the pull symbol from the GIT toolbar as shown in the image below.<\/p>\n<p><figure id=\"attachment_74638\" aria-describedby=\"caption-attachment-74638\" style=\"width: 407px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.23.38-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74638\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.23.38-PM.jpg\" alt=\"\" width=\"407\" height=\"375\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.23.38-PM.jpg 407w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.23.38-PM-300x276.jpg 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/a><figcaption id=\"caption-attachment-74638\" class=\"wp-caption-text\">Pull Changes<\/figcaption><\/figure><\/p>\n<p>In the second case, the changes are required to be pulled in from other branch. To pull the changes from the other branch, one needs to click the Pull icon with a\u00a0<strong>?<\/strong> symbol on it. It opens up a window asking for the name of branch from which the changes needs to be pulled in. Enter the name of the branch and click Finish. The latest changes will be Merged\/Rebased depending on the selection of the option from the select box.<\/p>\n<p><figure id=\"attachment_74639\" aria-describedby=\"caption-attachment-74639\" style=\"width: 612px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.27.23-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74639\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.27.23-PM.jpg\" alt=\"\" width=\"612\" height=\"454\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.27.23-PM.jpg 612w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.27.23-PM-300x223.jpg 300w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><\/a><figcaption id=\"caption-attachment-74639\" class=\"wp-caption-text\">Pull Changes from Remote Branch<\/figcaption><\/figure><\/p>\n<p>Generally, the tool manages to merge the changes to your files easily. However, in case of any conflict, EGit will display a conflicting status for the pull and the project label will get a small red dot on it indicating conflicted files.<\/p>\n<p><figure id=\"attachment_74640\" aria-describedby=\"caption-attachment-74640\" style=\"width: 604px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.30.37-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74640\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.30.37-PM.jpg\" alt=\"\" width=\"604\" height=\"368\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.30.37-PM.jpg 604w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.30.37-PM-300x183.jpg 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/a><figcaption id=\"caption-attachment-74640\" class=\"wp-caption-text\">Conflicting Status of Pull<\/figcaption><\/figure><\/p>\n<p>In such a case, there are two ways to resolve the conflict:<\/p>\n<ol>\n<li>Edit the file manually and commit the corresponding changes<\/li>\n<li>Use the Merge tool by right clicking the file and navigating to\u00a0<strong>Team -&gt; Merge Tool<\/strong><\/li>\n<\/ol>\n<p>Once the changes are pushed to the repository, the conflict symbol will disappear automatically.<\/p>\n<h3>3.9 View file history and compare changes<\/h3>\n<p>When versioning is involved, it is common to compare the file with a different branch or a previous or HEAD version. With EGit, this can be done by merely navigating through the menu after right clicking on the corresponding file. The image shown below explains the same.<\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_74642\" aria-describedby=\"caption-attachment-74642\" style=\"width: 634px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.43.02-PM.jpg\"><img decoding=\"async\" class=\"size-full wp-image-74642\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.43.02-PM.jpg\" alt=\"\" width=\"634\" height=\"742\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.43.02-PM.jpg 634w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-09-at-10.43.02-PM-256x300.jpg 256w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><figcaption id=\"caption-attachment-74642\" class=\"wp-caption-text\">Git Compare<\/figcaption><\/figure><\/p>\n<p><strong>Compare with HEAD Revision:<\/strong> Compares the current file state with the available version on the remote repository<\/p>\n<p><strong>Compare with Index:\u00a0<\/strong>Compares the current file state with the file state of the Indexed file. This is useful to check incremental changes<\/p>\n<p><strong>Compare with Previous Revision:\u00a0<\/strong>Compares the file with the previous revision pushed to the repository<\/p>\n<p><strong>Compare with Branch\/Tag\/Reference:\u00a0<\/strong>Allows you to select a specific branch, tag or reference head to compare the current file state with<\/p>\n<p><strong>Compare with Commit:\u00a0<\/strong>Compares the current file state with the last committed version of the file<\/p>\n<h2>4. Conclusion<\/h2>\n<p>The article covers all the basic operations necessary to work with the EGit plugin in Eclipse. The plugin is the easiest way to avoid managing multiple tools for the GIT versioning and project development. With EGit, the complete workflow is integrated into a single IDE and this certainly makes it easier to view the changes and track them visually. To top it all, EGit is a free tool available under GNU Public licensing and hence does not cost you a fortune to use it.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it isn&#8217;t really easy to work with when it comes to using the command line interface for versioning. To solve this difficulty, the developers came up with creative GUI based tools &hellip;<\/p>\n","protected":false},"author":21944,"featured_media":118,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[29,334],"class_list":["post-74518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development","tag-eclipse","tag-git"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Git version control with Eclipse (EGit) Tutorial - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git version control with Eclipse (EGit) Tutorial - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-14T23:00:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-11T08:36:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Abhishek Kothari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Kothari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html\"},\"author\":{\"name\":\"Abhishek Kothari\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/308db426d5e31fe272944e267861c55a\"},\"headline\":\"Git version control with Eclipse (EGit) Tutorial\",\"datePublished\":\"2018-03-14T23:00:34+00:00\",\"dateModified\":\"2023-12-11T08:36:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html\"},\"wordCount\":2260,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/git-logo.jpg\",\"keywords\":[\"Eclipse\",\"Git\"],\"articleSection\":[\"Software Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html\",\"name\":\"Git version control with Eclipse (EGit) Tutorial - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/git-logo.jpg\",\"datePublished\":\"2018-03-14T23:00:34+00:00\",\"dateModified\":\"2023-12-11T08:36:52+00:00\",\"description\":\"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/git-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/git-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2018\\\/03\\\/git-version-control-with-eclipse-egit-tutorial.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Development\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/software-development\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git version control with Eclipse (EGit) Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/308db426d5e31fe272944e267861c55a\",\"name\":\"Abhishek Kothari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g\",\"caption\":\"Abhishek Kothari\"},\"description\":\"Abhishek is a Web Developer with diverse skills across multiple Web development technologies. During his professional career, he has worked on numerous enterprise level applications and understood the technological architecture and complexities involved in making an exceptional project. His passion to share knowledge among the community through various mediums has led him towards being a Professional Online Trainer, Youtuber as well as Technical Content Writer.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/abhishek-kothari\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git version control with Eclipse (EGit) Tutorial - Java Code Geeks","description":"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html","og_locale":"en_US","og_type":"article","og_title":"Git version control with Eclipse (EGit) Tutorial - Java Code Geeks","og_description":"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it","og_url":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2018-03-14T23:00:34+00:00","article_modified_time":"2023-12-11T08:36:52+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg","type":"image\/jpeg"}],"author":"Abhishek Kothari","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Abhishek Kothari","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html"},"author":{"name":"Abhishek Kothari","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/308db426d5e31fe272944e267861c55a"},"headline":"Git version control with Eclipse (EGit) Tutorial","datePublished":"2018-03-14T23:00:34+00:00","dateModified":"2023-12-11T08:36:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html"},"wordCount":2260,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg","keywords":["Eclipse","Git"],"articleSection":["Software Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html","url":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html","name":"Git version control with Eclipse (EGit) Tutorial - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg","datePublished":"2018-03-14T23:00:34+00:00","dateModified":"2023-12-11T08:36:52+00:00","description":"1. What is EGit ? GIT is a popular versioning system used widely across the software development sector. Despite being a popular versioning system, it","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/git-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2018\/03\/git-version-control-with-eclipse-egit-tutorial.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Software Development","item":"https:\/\/www.javacodegeeks.com\/category\/software-development"},{"@type":"ListItem","position":3,"name":"Git version control with Eclipse (EGit) Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/308db426d5e31fe272944e267861c55a","name":"Abhishek Kothari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0330027588516ca573c97a060605ee7e7b99fc40fd0037cf8d1bf5166b4e4bd6?s=96&d=mm&r=g","caption":"Abhishek Kothari"},"description":"Abhishek is a Web Developer with diverse skills across multiple Web development technologies. During his professional career, he has worked on numerous enterprise level applications and understood the technological architecture and complexities involved in making an exceptional project. His passion to share knowledge among the community through various mediums has led him towards being a Professional Online Trainer, Youtuber as well as Technical Content Writer.","url":"https:\/\/www.javacodegeeks.com\/author\/abhishek-kothari"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/74518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/21944"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=74518"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/74518\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/118"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=74518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=74518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=74518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}