This repo contains an example guide of what our workflow (based on GitHub flow) might look like for project development and collaboration.
- In GitHub Desktop, click the
Current branch
button to open the branch menu. Themain
branch is our default master branch that we will branch off of when starting on a new task. Click theNew branch
button to create a new branch. When choosing a branch name, you can refer to the task that you're working on. For example if you're working on implementing a basic map, you could name the branchimplement-basic-map
. The new branch allows you to make whatever changes for your task without affecting themain
branch. After naming the branch, click theCreate branch
button.
- Whenever you make changes locally, the file differences will appear under the
Changes
tab. You can choose which files to commit by checking the box next to each file. If there are files that you don't want to include in the commit, you can uncheck the box for those files. In the bottom left corner, describe your commit changes by typing into the message box. Click theCommit to ...
to make the commit. You can publish the branch to push it to the repo.
- After you have completed your work on the task, click the
Create Pull Request
button. This will open a page in the browser. You can name the pull request based off of your task and describe the changes you made in theWrite
box. Click theCreate pull request
button to publish it.
- If your pull request is ready for review, you can drop the link to it in Discord and have someone look it over. If everything has been addressed and it is approved, click the
Merge pull request
button. This will merge the changes from your branch into themain
branch.
- After the pull request has been merged, you can click the
Delete branch
button to indicate that the work on that branch is done.
- Whenever changes are made to the remote
main
branch, you'll need to pull the changes to update your local version of themain
branch. To do this, make sure themain
branch is selected as theCurrent branch
and click thePull origin
button to sync it with the latest changes.