Skip to content

Instantly share code, notes, and snippets.

@isidromerayo
Created September 30, 2013 17:18
Show Gist options
  • Save isidromerayo/6767054 to your computer and use it in GitHub Desktop.
Save isidromerayo/6767054 to your computer and use it in GitHub Desktop.
Simple workflow using GitHub from openEHR java-libs
1) Initialize
# Fork button github
# From my fork to my local
$ git clone https://github.com/isidromerayo/java-libs openEHR_java-libs
# Add original repository
$ git remote add upstream https://github.com/openEHR/java-libs
2)
# Check status from my repositiry
$ git fetch origin -v
# Check status from upstream
$ git fetch upstream -v
# Fetch from upstream
$ git fetch upstream
# Receive changes from upstream to my local
$ git merge upstream/master
# Check status
$ git status
# Push
$ git push
Note:
# Show remote branches
git branch -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment