Welcome to the National Water Center Innovators Program Summer Institute GitHub training repository! This repository is designed to help participants of the Summer Institute get comfortable with using GitHub, a tool for collaborative software development and data science.
The goal of this training is to familiarize you with the basics of GitHub. You will learn how to clone a repository, make edits, and commit changes. This exercise is intended to prepare you for contributing to collaborative projects during the Summer Institute, ensuring that all code and findings are public and reproducible. Getting Started
We will be using the CIROH 2i2c cloud compute platform during the Summer Institute bootcamp. You can access that platform here: https://ciroh.awi.2i2c.cloud/. Please start up a "small" compute instance. It might take a minute or two to start up. When it starts, it will open up a bash terminal on the right, and a file explorer on the left.
You probably already have a GitHub account, but just in case you don’t, you can sign up here.
-
Log in to GitHub:
- Go to GitHub and log in.
-
Open Settings:
- Click your profile picture > Settings.
-
Access Developer Settings:
- In the left sidebar, click Developer settings.
-
Create a New Token:
-
Set Token Details:
- Give your token a descriptive name.
- Select the scopes (permissions):
repo
(Full control of private repositories).
-
Generate Token:
- Click Generate token.
-
Save the Token:
- Copy the generated token and save it securely. You won’t be able to see it again.
- Use this token as the password when you push your modifications.
For the Summer Institute bootcamp, we’ll use a cloud computing platform hosted by The Alabama Water Institute.
- Visit this website.
- Click on “Public Infrastructure Request Form” under “Public Cloud”.
Fill out the form with the following information:
1. Requester Information:
Requester Name: [your name here]
Requester Institution: [your university here]
Requester email address: [your email address]
PI's Full Name: Jonathan Frame
PI's Affiliated Institute: Lynker
PI's Affiliated Email Address: jonathan's email
2. Project Information: Summer Institute Bootcamp, 2024. The bootcamp will include training on basic computational skills, and this will be done on the AWI 2i2c resource. All bootcamp participants will need access to this cloud compute platform.
3. Project Description: We will use many different software types, depending on the specific training workshop. This will include GitHub, Python, and more.
4. Resource Requirements: We can use mostly the same 2i2c compute environments that were set up for the CIROH DevCon.
5. Timeline: June 10th - July 25th
6. Security and Compliance Requirements: N/A
7. Estimation: Unknown
8. Approval: Unknown
- Go to ciroh.awi.2i2c.cloud.
- Choose Server Option – Small machine with image: “New Pangeo Notebook base image 2024.04.08”.
- Go to the GitHub site for our repository: NWC-CUAHSI-Summer-Institute/SI_fellows_2024_introductions, and click on the green button to copy the HTTPS address.
- In Jupyter environment, type:
git clone https://github.com/NWC-CUAHSI-Summer-Institute/SI_fellows_2024_introductions.git
[user]
email = [email protected]
name = yourgithubusername
- Understand the difference between forks and branches: Fork vs Branch.
- Create a new branch:
git checkout -b [your_branch_name]
- Open the
introductions.txt
file in Jupyter Lab. - Add a few notes about yourself.
- Stage and commit your changes:
git add introductions.txt
git commit -m "Added my name and interests"
- Push your branch to the remote repository:
git push --set-upstream origin [your_branch_name]
- Go to the GitHub repository website.
- Click the “Compare & pull request” button.
- Fill in the pull request details and submit.
By following these steps, you’ll contribute your changes to the repository and learn the basics of GitHub workflows.