BranchingStrategy

From crowdresearch
Revision as of 07:08, 30 May 2015 by Karanrajpal (Talk | contribs)

Jump to: navigation, search

Forking

The first thing you need to do is go on to https://github.com/crowdresearch/crowdsource-platform, and click on fork.

A fork is basically a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. Once you are sure of your changes, you can raise a pull request to merge your changes to the original project.

When you have forked the project, you will find it in your github account.

Cloning

Now, you want to get this forked repository onto your machine so you can start making changes to the code. Cloning refers to getting the code onto your machine. You can clone a repository by typing this into your command line :

git clone https://github.com/<your-username-here>/crowdsource-platform Setting the upstream on your cloned repository Once the cloning has been done, we need to tell git what our upstream is, that is, what have we forked from. You need to enter the directory by running

cd crowdsource-platform
git remote add upstream https://github.com/crowdresearch/crowdsource-platform.git

Branching

Pushing and pulling

Raising the Pull Request