title | subtitle | minutes |
---|---|---|
Git FUN!damentals |
Github-based workflow |
While git is useful to use locally, it is invaluable when there are lots of people contributing to the same project. Github works by being a remote server that stands outside of your local file directory. The basic GitHub workflow looks like:
- Pull
- Branch
- Modify
- Commit
- Push
- Go to https://github.com/join
- Follow instructions!
- A free/student account is fine, and you'll get free private repos as a student
- You'll want to use the same email address that you used for git locally
- Choose a strong password!
GitHub offers account upgrades for current students, that you can apply for at https://education.github.com/
The education upgrade comes with:
- Free private repositories
- Free upgrade to a Micro account on GitHub (for writing code)
- Free Travis CI account (for testing code)
- Free SendGrid account (automated email API)
- 15USD in Amazon Web Services credits (for deploying code)
- 50USD in Digital Ocean credits (for deploying code)
- No transaction fees for your first 1000USD in sales via Stripe
- Go to your homepage
- Press the
+
in the upper righthand corner - Select repository
GitHub initializes your repo for you, and can also create a LICENSE, README, and .gitignore with common non-comitted files
- Many workshops at the D-Lab develop and distribute materials via GitHub
- The process of copying one of these repositories to your local directory is called
cloning
On the righthand side of the page, you'll see a clone URL
.