-
Notifications
You must be signed in to change notification settings - Fork 698
Workflow
Mario Lins edited this page Mar 27, 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 develop
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/en/v1/Git-Branching-Rebasing (English) or http://git-scm.com/book/de/v1/Git-Branching-Rebasing (German) - 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. Please use the corresponding target branch:
- For Catroid - develop
- Drone - feature/drone
- Phiro - feature/phiro_pro
- Lego - feature/lego_nxt
Example:base fork: Catrobat/Catroid base:develop
----head fork: USER/Catroid compare:YOUR_BRANCH
- Send the pull request
NOTE: nice git tutorial: https://try.github.io