New Project

For this exercise we want you to go through the process of:

  1. creating a new local repo
  2. creating a new remote repo
  3. adding the remote repo to the local repo
  4. adding files
  5. going through the basic git workflow

Creating a New Local Repo

From your home directory create a new directory called hello-git.

Initialize the hello-git/ directory as a local git repository.

Solution

CLICK FOR ANSWER

Creating a New Remote Repo

Create a new remote repo on your personal GitHub account named hello-git.

Solution

CLICK FOR ANSWER

Adding Remote Repo to Local Repo

CLICK FOR ANSWER

Adding Files to Local Directory

Add a file called myname.txt and add your name to the contents of the file.

CLICK FOR ANSWER

Basic Git Workflow

Add the file to staging, commit the staged changes, and push the commit to the remote repo.

CLICK FOR ANSWER