-
Notifications
You must be signed in to change notification settings - Fork 686
Workflow
Oskar W edited this page Apr 11, 2021
·
8 revisions
In order to contribute to 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!
- Take a look at the open issues that are listed on Jira.
- Choose a ticket that you want to work on, first-time contributors should work on tickets tagged as TRAINING or BEGINNER
- Write a comment on the ticket, so we know that you want to work on it
- Create a branch named after the associated Jira ticket (e.g. CATROID-509)
- Make the changes for your contribution
- Commit them:
git commit -m "<commit message>"
, but first take a look at our commit message Guidelines - 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 on rebasing, you can have a look at the English or German git tutorial for rebasing. - If you have more than one commit, squash your commits into it:
git merge --squash
or add the changes withgit commit --amend
- Push your contribution to your forked repository:
git push origin BRANCH
Important: For a detailed description on how to make a pull request and how to get it merged fast, please take a look at the wiki entry on how to create a pull request.
- Visit your github site and open the forked repository
- Create a pull request by pressing the green button below 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