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
- Create a Github account here.
- Download and install Github Desktop.
- Follow the steps in Github Desktop to get setup with your Github account.
Part 2: Add your code!
Set up your repo
- 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.
- 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
- In Github Desktop, add a summary and description for your commit. Press the "Commit to master" button.
- Press the "Publish" button.
- 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
- Go to
https://github.com/[your username]/[your repo] and see your first commit!