gitgithub
Ben Gorman

Ben Gorman

Life's a garden. Dig it.

Setup

  1. Create a repo on Github named fry-quotes initialized with a README.md file. (It can be private or plublic. That's up to you.)

  2. Clone the repo to your local machine.

  3. Edit README.md on Github (in your browser) to look like this

    README.md
    ## Fry Quotes
     
    - What smells like blue?
    - I can't wait til I'm old enough to feel ways about stuff.
    - You can't lose hope when it's hopeless. You gotta hope more!
    - Why couldn't she be the other kind of Mermaid? With the fish part on top and the lady part on the bottom?!

Video of setup »

Challenge

On your local machine, display the differences between the remote and your local repo. In other words, answer the question What does the remote have that my local repo doesn't?

In practice..

You wouldn't normally edit files directly on Github. And if you did, you'd already know how the remote repo has changed. A more realistic scenario is that one of your colleagues pushed their changes to the remote. As you're working locally, you'll want to know how the remote has changed and how those changes affect your own work.


Solution

This content is gated

Subscribe to one of the products below to gain access