This lesson is being piloted (Beta version)

Introduction

Overview

Teaching: 10 min
Exercises: 0 min
Questions
  • Key question (FIXME)

Objectives
  • Review important points from the lesson “Version Control with Git”.

Recap: Important Git Commands

Recap: the Git working Cycle

Working locally

graph TD A[ git init ] -- creates new repository --> C ; C([create and edit files]) --> D ; D[ git add ] -- adds files to staging area --> E ; E[ git commit ] -- commits changes to local repository --> G ; G([working directory clean]) ----> C;

Typical workday with remote repository

graph TD A{start} --> B ; B[ git pull ] -- retrieve changes from remote --> C ; C([create and edit files]) --> D ; D[ git add ] -- adds files to staging area --> E ; E[ git commit ] -- commits changes to local repository --> F ; F[ git push ] -- push commits to remote repository --> G ; G([working directory clean]) --> H{end of day}; E -- continue working --> C ; G -- continue working --> C ; H -- new day --> A ;

Key Points

  • First key point. Brief Answer to questions. (FIXME)