-
Notifications
You must be signed in to change notification settings - Fork 698
Workflow
Mario Lins edited this page Feb 24, 2015
·
8 revisions
In order to contribute for the Catrobat Project, please use the following workflow:
- Fork the official repository
- Clone it to your local machine via
git clone YOUR_FORKED_REPOSITORY_URL
- Setup upstream to keep repository up to date:
git remote add upstream URL_TO_OFFICIAL_REPOSITORY
Example:git remote add upstream https://github.com/Catrobat/Catroid.git
- To update your repository use:
git pull upstream BRANCH
Example:git pull upstream development
NOTE:
upstream
defines the official repository andorigin
your forked repository!
- Please make your contributions on your local machine
- Commit them:
git commit -am "My Contribution"
- If you have to rebase - use
git rebase BRANCH
whereBRANCH
is the target branch where the changes should be added. If you want more information about rebasing, please visit: http://git-scm.com/book/de/v1/Git-Branching-Rebasing - If you have more than one commit, create a new branch and squash your commits into it:
git merge --squash
- Push your contribution to your forked repository:
git push origin BRANCH
- Visit your github site and open the forked repository
- Create a pull request by pressing the green button beside the branch selection field
- Select the source and target of the pull request
Example:base fork: Catrobat/Catroid base:development
----head fork: USER/Catroid compare:development
- Send the pull request
NOTE: nice git tutorial: https://try.github.io