-
Notifications
You must be signed in to change notification settings - Fork 1
Branching and pull request guide
Ruben edited this page Oct 19, 2023
·
5 revisions
Here you can find how to use branching and pull requests in this project
Tip: Remember to always follow our code of conduct, our contribution guidelines and our security policy
When working on a new piece of the project, for example a webpage, a style update or a bugfix, you make a new branch. To do this:
- Open the repository homepage.
- Click the branch button.
- Open the 'main' branch.
- In the box
Find or create a branch...
, insert the name of the branch you want to use. Good names are descriptive of their purpose, for example, 'header_logo' - Click the button
Create branch: from 'main'
To be able to work on the branch, you will need to connect to it in VS code.
- Access the
Source Control
tab on the left side of VS code. - Click on the three small dots button next to the refresh button.
- Click on the
Checkout to...
option. - Choose the branch you want to switch to. Make sure you have pushed or backed up any old code in your editor.
- Work in your editor and push and pull like normal. When its done, you can create a pull request.
To bring the new updates into the main code, you need to create a pull request for it.
- On the GitHub website, press the
Pull requests
button in the navigation bar. You can also press the greenCompare & pull request
button. In that case, skip to step 5. - Click the green
New pull request
button. - Select the branches to push to and pull from.
- Click the green
Create pull request
button - Fill in the details of your pull request, like the title, related issues, what step of the development plan its for and other contributors.
- Also fill in the details on the sidebar, like labels and assignees.
- Once that is done, click the green
Create pull request
button to submit the pull request. - Once the pull request is merged, you can safely delete the branch if work is done in it.
Made by RubenTheCoder and ChatGPT