Skip to content

Source Control with git and egit

joecrean edited this page Aug 21, 2012 · 1 revision

Introduction

Egit and Eclipse

Working with git on the VM

In order to refresh the Windows VM with the latest source code from github, run the following command

  git pull https://github.com/marklogic/top-songs.git

you will be prompted for your github credentials, then you will see something like this (file names vary of course).

Once you have pulled new/updated source code from github you must perform a refresh in Eclipse so that it reads the file system. Otherwise the new code will not be seen by eclipse. Perform a refresh by right clicking the project and choosing "refresh". Restart Tomcat if it does not automatically do so.

Any files you change locally (whether accidentally or deliberately) that you do not wish to keep can be "unchanged" by running the following command

 git checkout -- java/TopSongs/foo.java