Skip to content

Instantly share code, notes, and snippets.

@rogerwschmidt
Last active February 9, 2018 17:37
Show Gist options
  • Save rogerwschmidt/7e7d582655042d7b565d5457c8fa4e64 to your computer and use it in GitHub Desktop.
Save rogerwschmidt/7e7d582655042d7b565d5457c8fa4e64 to your computer and use it in GitHub Desktop.

Intro to Git Instructor Notes

Objectives

  • Define what version control is
  • Explain why version control is useful
  • Initialize a git repository
  • Explain and perform the git workflow (untracked, not staged, staged, committed)
  • Explain what git log shows
  • Define what a branch is
  • Explain why a branch is useful
  • Explain how to merge branches

What is version control?

  • As a table, create a short definiton of what version control is.

Why is version control useful?

  • As a table, create a short explanation of why version control is useful.

How do you initialize a git repo?

  • Individually, on your lap boards, write the command to initialize a git repo on your computer.
  • Individually, on your lapboards, write down what happens when you initialize a repo

What is the git workflow? and how do you move changes across it? (untracked, not staged, staged, committed)

  • With your table, create a diagram that shows each stage and the commands needed to move across them.
  • (Reminder for Roger) Rocketship metaphor.

What does git log show?

  • Individually, on your lapboards, write down what git log shows.

What is a branch?

  • As a table, create a short definiton of what a branch is

Why are branches useful?

  • As a table, create a short definiton of why branches are useful

How do you merge a branch?

I have a branch named undo that I have completed working on. I want to merge it into master

  • Individually, on your lapboards, what is the command necessary to complete the action above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment