Git fork syncing

After you fork the project OpenHospital (for more infos please visit How to contribute), it may happen that your fork remains behind the original development, such as new features but new dev branches as well.

In order to re-sync your fork with the original repository please follow this instructions (you need Git command line).

1-- Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2-- Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git git fetch upstream (es. `git remote add isf-upstream git://github.com/informatici/OpenHospital`)

3-- Updating your clone from original repo to keep up with their changes:

git pull upstream master


4-- Push back to the online fork

git push