Skip to content

Preparing to modify code

Andrew Post edited this page May 12, 2017 · 3 revisions

To make changes to the a codebase, first obtain a copy of the code and create a personal fork, as described on Creating and forking projects page.

Now, checkout the personal master branch, make sure it's up to date, and then create a new feature branch from that branch

Modifying code in Git repository

$ git checkout upstream-master # checkout the local branch that tracks the remote upstream branch
$ git pull # update the branch to get latest changes to upstream
$ git checkout master # change to personal fork's master branch
$ git rebase upstream-master # pull in all the changes from upstream
$ git checkout -b bugfix # create a "bugfix" branch, and change to it
$ vi ImportantObject.java # make changes to the code

Note, we have structured Eureka! Clinical such that you do not need to checkout and build any dependencies for the actual project that you are modifying. For Java code, the build process will pull any dependencies automatically from Maven Central.

Clone this wiki locally