Skip to content

How to upload code to GitHub

Cryotechnic edited this page Dec 20, 2019 · 6 revisions

For this particular project, there is only one branch that is open to everyone for contribution, and that is the dev branch. All other branches are locked to prevent access to them until the code is tested and validated by Ron to be bug-free and optimized for deployment. Always, ALWAYS upload to the dev branch. The management of the master and stable branch is Ron's jurisdiction. If you have any questions regarding this or wish to contest this, please message him directly on Discord by sending him a DM at Cry0#9879.

Uploading via the web interface

When you upload a file, find the right folder to upload it. When you have selected the right location, click the upload file tab. Select the right file, enter a title (eg. main page of the website) and add a description. Descriptions are mandatory as they allow us admins to know why you are submitting a pull request to a branch. Never commit directly to any branch. Always create a new branch for the commit and start a pull request. We will look at the file and push to the dev branch if it deemed stable. If we reject your pull request, please correct your code based on the feedback we gave you and update your pull request once that has been made. Then name the branch with the page name and the patch number (ex: landing-page-ver-1).

Uploading via GitHub Desktop

Once you have cloned the repository and set up your development environment (read the README for an in-depth guide on how to do so), make sure GitHub Desktop is open when you are working on code. Please create a new branch when working on an issue before making any changes to the code in order to make sure that the main development branch does not get polluted with unwanted modifications.

Proceed with coding, and make sure to save your file once you are done. GitHub Desktop will automatically pick up the file change and append it to a list of modified files. Once your task is complete, add a commit message with a description and push it to origin. By doing so, you are modifying code in your own branch.

Once all of your changes are complete, create a pull request, specifying the page name and the patch number. Provide a short summary of all of the changes that you have done to the code so that we can quickly follow up if needed. If everything is good and checks out, your pull request will be merged with the dev branch and the branch containing your resolved issue will be deleted to prevent clutter.

Uploading via Git

Instructions regarding the upload of code via Git will be added at a later date. Please use the tools above for the time being.

Clone this wiki locally