Git Basics Training Course

1 DayClassroom, Webinar,

This course is divided into a number of individual modules, many modules have an associated lab exercise that will help to reinforce the learning experience.

The Clearvision Git basics training course provides a comprehensive understanding of basic Git concepts and looks at the different ways Git can be used and implemented.

Course Availability

Classroom, Webinar,

Objectives & Outcomes

At the end of the Clearvision Git Basics course students will understand basic Git concepts and will be able to use Git to provide configuration management support for software development projects. For a more in-depth look at how Git can be used to support various ways of working, as well looking at maintenance of your Git environment and integrations with other tools, Clearvision recommend this course is followed by the Git Advanced course.

Pre-Requisites

  1. Basic knowledge of Linux interfaces (including Linux/UNIX command line interface)
  2. No previous Git experience is required

Course Modules

Below is a breakdown of the modules and exercises that make up the course. Please contact us directly for further information.
Module 1: Introduction
Module Sections
  1. What this course covers
  2. The need for Version Control
  3. A brief history of git and what it is (i.e. a DVCS)
  4. What is DVCS
  5. Plumbing and Porcelain
  6. The repository (at high level)
  7. Getting Started
Lab Exercises
  1. Group discussion, understanding DVCS
Module 2: Git Concepts
Module Sections
  1. Git Object Types
    • Blobs
    • Trees
    • Commits
    • Tags
    • Git Reference Types
    • Object Model Example
  2. Hash Values (SHA-1)
  3. The Git Data Model
Lab Exercises
  1. Verify Git Installations
  2. Identify the git repository
  3. Ask Git for help
Module 3: Getting started
Module Sections
  1. How to create a new Git repository
  2. Setting up Your Git Environment
  3. Basic workflow
  4. Adding new files
  5. Changing existing files
  6. Committing changes to the repository
  7. The Git Log
Lab Exercises
  1. Identify yourself to Git
  2. Create a Git repository
  3. How to add new files/folders
  4. How to commit new files/folders
  5. Clone an existing repository
  6. Check the status of your Git repository
Module 4: Working with Git
Module Sections
  1. Workflow
  2. The Status command
  3. Ignoring file types
  4. View specific changes
  5. Removing files & directories
  6. Moving files & directories
  7. Stashing Changes
  8. Undoing or fixing errors
  9. Reset a change
  10. Revert a change
  11. Checkout a change
Lab Exercises
  1. Use the git log command to help you clarify if you are committing the correct version of a file
  2. Use the git status command to help you clarify the current state of your repository
Module 5: Branching and Merging
Module Sections
  1. What is a branch
  2. Creating a branch
  3. Switching between branches
  4. What is a merge
  5. Fast forward merge
  6. 3-way merge
  7. Resolving merge conflicts
  8. Merge tools
  9. Removing branches
  10. Branch management in Git
Lab Exercises
  1. Create branches in Git
  2. Add files to branches
  3. Checkout branches
  4. Merge into branches
  5. Rebase and squash a feature branch
Module 6: Collaboration Basics
Module Sections
  1. Cloning repositories
  2. Remotes
  3. Remote Branches and Tracking Branches
  4. Fetching, Pulling and Pushing Changes
  5. Bare and development repositories
  6. Publishing repositories
Lab Exercises
  1. Clone a repository
  2. Create or Identify a remote
  3. Pull changes
  4. Push changes
  5. Merging between repositories
Module 7: Collaboration Strategies
Module Sections
  1. Branching Strategies
  2. Structural Strategies
Lab Exercises
  1. A flexible exercise implementing the strategy you intend to use moving forward
Module 8: Tagging
Module Sections

 

  1. What is a tag
  2. Viewing tags
  3. Creating tags
  4. Signed tags
  5. Tagging later
  6. Sharing tags

 

Lab Exercises
  1. Create tags in Git
    • Lightweight tags
    • Annotated tags
    • Checkout tags in Git
  2. How to view tags
  3. How to checkout tags
Optional Module 9: Putting It All Together
Module Sections
  1. This is an open lab exercise which asks students to use what they heave learned to implement a scenario.
Book This Course

Apply for training

Close