Getting Started with GitHub - adefelice/DDA617_Languages_FALL2017 GitHub Wiki

  1. Go to github.com and create a free account: https://github.com/join

  2. Create a new repository on your GitHub account online. Include the README.md. Title the repository Languages_FirstName . (For example: Languages_Allison)

  3. Make me a collaborator:

  • Go to the Settings tab of your repo online.
  • Under Options, click on Collaborators.
  • Search for me: adefelice
  • When you find me, click on Add Collaborator
  1. Download GitHub for desktop at: https://desktop.github.com . Install and open the application. Sign in with your Github.com login.

  2. Go back to the online repository and select the green “Clone or download” button, then select “open in desktop”

  3. You should see a prompt asking where you want to clone the repos. (I keep mine at Documents/Processing where Processing sketches go by default on a Mac.)

  4. You should now have your repo online at GitHub.com and cloned locally on your computer.

  5. Place your Short Study #1 Assignment (Algorithmic drawing - see Assignment 02) into your local repo. The folder (and .pde file inside of it) should be labeled SSI_firstName.

  6. Go back to your GitHub app. You should see a notice of uncommitted changes, because your local repo just changed. Select the changes that you want to commit, and write a summary of the commit (for example: “creates ss1”). Select “Commit to master”. You should now see no more uncommitted changes.

  7. One more (very critical!) step! Currently, your commits are saved to your local repo, and we want to mirror these changes on the online repo. To do this, we "push" the commits. In the desktop app menu, go to Repository--> Push. Check your online repo. You should see your SS1 folder there now.

  8. Do the same thing with your Short Study 2 assignment. Place your Short Study 2 assignment into your local repo, with the .pde inside of it. (All assignments should follow the same naming: SS2_firstName)

  9. Any time you make a change to files within your local repo, you should see the uncommitted changes appear on the GitHub app. Commit the changes often (and, at the very least, at the end of each working session), detailing what each change is (for example: “added a mouseClicked() event” or “fixed the rectangle variables”). Remember to push to the online repo after committing the changes. You can go back at any time and check the history of your files, if you want to go back to an earlier version.

  10. You can also "pull" changes from the online repo to the local repo. In the desktop app menu, go to Repository--> Pull.

We will get into more GitHub basics as we go!

//////////////////////////////////////////////////////////////

This video is a pretty good overview of the basic process above, but ignore the Atom and web stuff:

Here are the Noob videos we watched in class, if you want to refer back to them:

For more help: