Sports Competition Management Software with a modern and fast architecture. Java based backend with a RESTful JSON API and a HTML 5 client.
Copyright (C) 2015 Marcus Fihlon
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- Fork the repository only, if you want to contribute. If read only access is enough for you, simply clone this repository directly or download the ZIP file.
- Don’t modify the master branch directly. Touch the master branch only when merging in a feature branch.
- Use feature branches for every kind of modifications, including fixes. Name the branch with the issue number and the title, prefixed with the type of your contribution (e.g. "enhancement") as a directory. If there is no issue for your change, create one.
- When you commit your work, always mention the issue number in the commit message.
- When you merge the feature branch into the master branch, don’t use fast forward (
-no-ff
)! - After merging, tag the master branch for archiving. Use the same name for the tag as for the feature branch, prefixed by “archive/“.
- If it is no longer in use, delete the feature branch.
- When you push the master branch from your clone to your fork, push the archiving tag, too!
- To get your changes integrated into this repository, create a pull request on GitHub
- If not already done, fork the SportChef repository using GitHub and clone your fork locally:
git clone https://github.com/[YourUsername]/sportchef
- Create the feature branch:
git checkout -b enhancement/42-update-dropwizard
- Make your changes and commits:
git add build.gradle
git commit -m ‘#42 Updated DropWizard to 0.7.1’
- Keep the feature branch up-to-date:
git rebase master
- Merge the feature branch to the master branch:
git checkout master
git merge --no-ff enhancement/42-update-dropwizard
- Tag the master branch for archiving:
git tag archive/enhancement/42-update-dropwizard
- Delete the feature branch:
git branch -d enhancement/42-update-dropwizard
- Push changes to your own fork:
git push origin master
git push origin archive/enhancement/42-update-dropwizard
- Create a pull request using GitHub.
If you fork this repository, GitHub will not keep your fork in sync with this repository. You have to do it on your own.
- If not already done, add this repository as an upstream to your repository:
git remote add upstream https://github.com/McPringle/sportchef.git
- Verify that this repository was added successfully:
git remote -v
- Fetch branches and commits from this repository to your local branch
upstream/master
:git fetch upstream
- If you are not on your local master branch, check it out:
git checkout master
- Merge the changes from this repository into your repository:
git merge upstream/master
- Push your updated repository to your GitHub fork:
git push origin master
- When I try to push, I get a
non-fast-forward updates were rejected
error.
Your local copy of a repository is out of sync with, or behind the upstream repository, you are pushing to. You must retrieve the upstream changes, before you are able to push your local changes.