Strawberry is an free and open-source project, it is possible and encouraged to participate in the development. You can also participate by answering questions, reporting bugs or helping with documentation.
You should start by creating a fork of the Strawberry repository using the GitHub fork button, after that you can clone the repository from your fork. Replace "username" with your own.
git clone [email protected]:username/strawberry.git
cd strawberry
git remote add upstream [email protected]:strawberrymusicplayer/strawberry.git
This creates a new branch from the master branch that you use for specific changes.
git checkout -b your-branch
Once you've finished working on a specific change, stage the changes for a specific commit.
Always keep your commits relevant to the pull request, and each commit as small as possible.
git add -p
git commit
The first line should start with the name of the class that is changed followed by a colon then a short explanation of the commit. Don't use a trailing period after the first line. If this change affects more than one class, omit the class name and write a more general message.
You only need to include a main description (body) for larger changes where the one line is not enough to describe everything. The main description starts after two newlines, it is normal prose and should use normal punctuation and capital letters where appropriate. It should explain exactly what's changed, why it's changed, and what bugs were fixed.
An example of the expected format for git commit messages is as follows:
StretchHeaderView: Set default section size
As of Qt 6.6.1, style changes are resetting the column sizes. To prevent this, we set a default section size.
Fixes #1328
Once you've finished working on the changes, push the branch to the Git repository and open a new pull request.
git push origin your-branch
git checkout master
git pull --rebase origin master
git fetch upstream
git merge upstream/master
git push origin master
git checkout your-branch
git fetch upstream
git rebase upstream/master
git push origin your-branch --force-with-lease
If you need fix any issues with your commits, you need to rebase your branch to squash any commits, or to change the commit message.
git checkout your-branch
git log
git rebase -i commit_sha~
git push origin your-branch --force-with-lease
If you do not plan to work more on Strawberry, please delete your fork from GitHub once the pull requests are merged.