Git: Manage Your Code Exercise

The goal of this exercise is to get hands-on with Git. At the end of this, you will have your code in a repo.

Part 1: Setup

  1. Create a Github account here.
  2. Download and install Github Desktop.
  3. Follow the steps in Github Desktop to get setup with your Github account.

Part 2: Add your code!

Set up your repo
  1. In Github Desktop, create a new repo with a meaningful name such as portfolio. Choose a path that makes sense to you--maybe My Documents or Projects. Go to that path in Finder or Windows Explorer; you should see a new local folder with your repo name on your computer in that path.
  2. In Finder or Windows Explorer, move all your files into that new repo folder. Notice that Github Desktop's middle Changes panel lists all your files.
Make your first commit
  1. In Github Desktop, add a summary and description for your commit. Press the "Commit to master" button.
  2. Press the "Publish" button.
  3. In the dialog that appears, ensure Name is the same as your local folder and Account is yours, and click the "Publish Repository" button.

Part 3: Verify your commit on Github

  1. Go to[your username]/[your repo] and see your first commit!