Homework for 6A

Review

Topics Covered: Ruby review


Exercises

E1: Git Review

  1. What does the git init command do?
  2. What does git add do? How is it different from git commit?
  3. What is the difference between staged and committed (or versioned) files? When might you stage something and not commit it?
  4. What's the shortcut for adding all files and commiting?
  5. How do you unstage a staged file? How do you go back to an old version of a committed file?
  6. Why are commit messages very important?
  7. How do I revert to a previous commit?
  8. How do you exit out of vi? (Also called vim.)

E2: GitHub

  1. What's the difference between GitHub and git? Could git exist without GitHub? Could GitHub exist without git?
  2. Why is GitHub a cool company?
  3. What does git push do?
  4. What does git pull do? How is it different from/same as git fetch and git merge?

E3: Push Push Push!

Now that you know how to create github repos, the next step is to add your API projects on your Github. Initialize a new repo on Github (which should have the same name as your local repo), follow instructions taught in lecture on how to sync up the remote and local repo, add your changes, and push them to your github repo!

E4: Achieve Mastery on Code Wars

A "code kata" is a small, isolated programming challenge that you can do for practice. There are many web sites that offer these. The best of them is Code Wars. There are many challenges for beginners, and as you get better at solving challenges, you will rank up into harder challenges.

There's no shame in skipping a challenge, but do try not to "cheat" and look up a complete answer. Come back to it later.

Sign up on codewars.com using your github account, and practice!

Try to do at least one every day, forever.