Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Latest commit

 

History

History
84 lines (45 loc) · 3.73 KB

File metadata and controls

84 lines (45 loc) · 3.73 KB

#Installing and Using Github The link to the video can be found here.

As you go through the Intro to Programming Nanodegree, you may find times when you want to share all of the files you are working on with a coach or a fellow student. The best way to do so is probably to use Github. It will allow you to update what's online with what is currently on your computer.

Go to www.github.com, and create an account (or sign in if you already have one). You can create an account by:

  • Go to GitHub's Plans & Pricing page.
  • Select the appropriate account type and level that you want to create. (You'll want the free version)
  • When you're ready with your decision (to go with the free version, probably), click 'Sign up now'.
  • Type your username, email address, and password on the next screen.
  • Select your plan type. (Again, you'll want the free version).
  • Click Finish sign up.

You should also download Github desktop from here: https://desktop.github.com/

Follow the prompts to install Github desktop. We'll do the Mac version here; both Windows and Mac should have a straight-forward installation process.

On a Mac, once it is downloaded, go to your downloads folder:

downloads folder

Unzip the file by double clicking on it. From there, double click the opened app:

open app

Open the app when prompted:

open app securely

Move it into your applications folder when prompted:

move to applications folder

Now it's installed!

Now that Github desktop is installed and you have an account, create a new repository on the Github website:

create new repository

Make sure it is public, like it is by default:

chose public profile

Give it a name and create a new repository. When it is all set up, clone it in your desktop:

clone in desktop

It should launch GitHub:

GitHub symbol

You then make the folder there, and then move whatever files you want to share with others (or us coaches) here. After you move your files, make a comment under the description about what your current edit did, and then commit the changes:

Commit

This will save changes locally; now you need to 'push' (or publish) these requests to Github. You can do this by syncing: Sync

Once it is on Github, anytime you want to update what is on Github, you can sync Github with what is on your local machine by:

  1. Making changes on your local machine and saving them
  2. Committing those changes
  3. Pressing the 'Sync' button:

Sync

This will upload everything to GitHub, which will allow us to more easily collaborate with you, since we'll be able to see both your code and the relative position of your files.

You can also create new repositories directly on your local machine, and then publish them to Github before starting the syncing process for new updates. To do this, start Github desktop. Create a new repository, with whatever name you want and wherever you want. This will create a folder in this location by that name!

create new repository

save it where you want

Then, when you want to upload it to Github, press 'Publish':

Publish

After it's published you can update it the same way you would if you created it on Github; by syncing it with your changes, as outlined above.