I wanted to fork out Robolectric's Android sample test project as a starting point to writing my own unit tests which can run on JVM. Here are the steps I took :
Step-1: Click on "Fork" to create a fork on github for Robolectric.git
Step-1: Click on "Fork" to create a fork on github for Robolectric.git
Step-2: Clone your fork in your local machine:
Step-4: To keep track of original repository, add upstream
git clone https://github.com/<user>/RobolectricSample.gitStep-3: cd RobolectricSample/
Step-4: To keep track of original repository, add upstream
git remote add upstream https://github.com/pivotal/RobolectricSample.gitNote: You can bring original repository's changes in your working space by this command:
git fetch upstreamMerge changes from upstream (original repo) into your forked repo:
git merge upstream/masterStep-5: Pushing changes to forked repo:
git push origin master