Github Tips
Note
This page will come in the next release of these docs. At the bottom of this page, there are the steps listed out. I just haven’t had time to be more detailed yet.
Github is a fantastic software base that allows you to archive, track code changes and share code with the world. A key part of AI2ES is the open-access nature of its code. Thus, all AI2ES funded research shall encorperate open-acess code/data. One easily accesible way to do this is by posting code for your research on github. While there are likely countless tutorials about github out there, I (Randy) have not seen anywhere that lays out simple steps to follow when using github. Thus, this page will hopefully guide you.
I will assume you already have a github account. If not, go sign up for one. Go to https://github.com/
Step 1: Create Repository
If you are looking to start a new project you need to create a new repository. AI2ES has made a template to make this easy.
Steps Listed
git clone repogit checkout -b NEW_BRANCH_NAME<– open an new branchmake changes to code
test changes
git add -A#add all changes into the codegit commit -m "MESSAGE"<– add a descriptive but short message heregit push https://TOKEN@github.com/PATH/TO/REPO/REPO_NAME.git NEW_BRANCH_NAMEon Github: open pull request on your fork
merge in changes when you are happy with your changes.