Difference between revisions of "BranchingStrategy"

From crowdresearch
Jump to: navigation, search
(Cloning)
Line 3: Line 3:
 
The first thing you need to do is go on to [https://github.com/crowdresearch/crowdsource-platform https://github.com/crowdresearch/crowdsource-platform], and click on fork.
 
The first thing you need to do is go on to [https://github.com/crowdresearch/crowdsource-platform 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 the original project to merge your changes to the original project.  
+
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
+
When you have forked the project, you will find it in your github account.
  
 
==Cloning==
 
==Cloning==
Line 11: Line 11:
 
You can clone a repository by typing in
 
You can clone a repository by typing in
  
git clone <nowiki>https://github.com/<your-username-here>/crowdsource-platform</nowiki>
+
''git clone <nowiki>https://github.com/<your-username-here>/crowdsource-platform</nowiki>''
  
 +
Once the cloning has been done, you need to enter the directory by running
 +
 +
''cd crowdsource-platform''
 
==Branching==
 
==Branching==
  

Revision as of 23:38, 29 May 2015

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 in

git clone https://github.com/<your-username-here>/crowdsource-platform

Once the cloning has been done, you need to enter the directory by running

cd crowdsource-platform

Branching

Pushing and pulling

Raising the Pull Request