01B Getting Started With Github
01B Getting Started With Github
Part 1 of the following is the official GitHub instructions for setting up a github account,
adapted from https://docs.github.com/en/get-started/onboarding/getting-started-with-your-
github-account. My notes for you are highlighted in yellow
1. Creating an account
If you already have a GitHub account, skip to part 1 step 4. If you are creating a new GitHub
username, I suggest making it similar to your name (ex: mine is laurasisk).
To sign up for an account on GitHub.com, navigate to https://github.com/ and follow the
prompts to sign up for github.
To keep your GitHub account secure you should use a strong and unique password. For more
information, see "Creating a strong password."
Make the repository public so that I can see it on yor GitHub account. By the end of this
exercise, you should be able to describe what a repository, branch, commit, and pull request is.
1. In your hello-world repository that you made in part 3, make a new branch called
markdown-test (Don’t remember how to get there? Check the hello-world tutorial).
2. Edit the readme file using info from the markdown cheatsheet to have:
a. A heading (any size) that says “Hello World”
b. bold text below the heading that says “this is a test for BIOL 668”
c. A blockquote telling me what your favorite animal is
4. Open and merge a new pull request to pull the changes you made to the main branch
Your new readme file should look something like this: https://github.com/laurasisk/hello-world
Part 4: Follow
1. Navigate to my GitHub profile and follow me so that I can find your profile for future
grading: https://github.com/laurasisk
2. Enter the link to your GitHub profile into the assignment on canvas (under the GitHub
module for the lab canvas)
Part 5: Setting up git for the command line
Windows users! For this section, you will need to either install a windows subsystem for linux
(WSL) or a linux virtual machine (VM) first, and then complete the command line portions of
this section on your WSL or VM. See instructions on the lab’s canvas under the “Intro” module.
1. Install git for the commandline on your machine:
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
If you’re a MAC user, follow the instructions for installing on macOS by running these
commands on the terminal command line. If you are a windows user, follow the instructions for
installing on linux; you must either be using a WSL or VM for this.
2. Set up git:
Set Your Identity
The first thing you should do when you install Git is to set your GitHub user name and email
address. This is important because every Git commit (save) uses this information, and it’s
immutably baked into the commits you start creating:
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
From this site, read about git config and look at your configuration settings using the following
command:
The Git reference manual is really well written and helpful! Bookmark/save this for use later in
the course: https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control