Set up your user information with your real name and a working email address:
git config --global user.name "Your Name"
git config --global user.email email@example.com
Navigate to the Shopware Github Repository and click the "Fork"-Button in the upper right hand corner.
This will create a "copy" of the entire Shopware repository into your personal user namespace.
After the "forking action" has completed, clone your fork locally (this will create a
git clone firstname.lastname@example.org:USERNAME/shopware.git
Add the shopware repository as
git remote add upstream https://github.com/shopware/shopware.git
Verify the new remote named
git remote -v
origin email@example.com:USERNAME/shopware.git (fetch)
origin firstname.lastname@example.org:USERNAME/shopware.git (push)
upstream https://github.com/shopware/shopware.git (fetch)
upstream https://github.com/shopware/shopware.git (push)
Now that you have the shopware source code locally on your machine please follow the Git Installation Instructions.
Each time you want to work on a patch, create a feature branch:
git fetch upstream
git checkout -b my-new-feature upstream/5.2
The first command will fetch the latest updates from the upstream project (shopware).
The second will create a new branch named
my-new-feature, that is based off the
5.2-branch of the
Push your branch to your github fork:
git push origin my-new-feature
Navigate back to the Shopware Github Repository and click the "Compare & pull request"-Button.
Before creating your pull request make sure that it fits our contribution guideline.