-
-
Notifications
You must be signed in to change notification settings - Fork 28
Basic Contribution Tutorial
Masterjun edited this page Apr 29, 2024
·
1 revision
Git can be confusing sometimes, so this page explains a way of contributing your changes and shouldn't run into the usual git troubles.
TL;DR: Fork the repo. And then always: Sync main
, create new branch, commit changes on new branch, PR new branch. (In particular, never commit on main
)
Fork the repository by clicking the "Fork" button.
The default settings for the fork are fine.
Always repeat these steps for a new change. Never work on your old branches after they have been merged in the main repository.
- Switch to
main
branch - Click "Sync fork"
- Click "Update branch"
If you're already up to date, you can skip this step.
- Switch to
main
branch - Click
main
in the branch selection - Enter a new branch name (e.g.
fix-frontpage-bug
orupdate-readme
or similar) - Create this new branch
Now it's time to change files around and thus improve the site!
- Make sure you're on your new branch
- Click "Contribute"
- Click "Open pull request"
- And then you can enter a title, a description, and submit your pull request.