Git Essentials

Git Essentials

  • 1 Day
  • Classroom, Webinar

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

About this Course

Is this course for you?

This course is ideal for anyone new to Git version control, or anyone who has been using it for a while, without really understanding how it works.

Objectives & Outcomes

Through the Clearvision Git Essentials course you’ll become an expert at using git for day to day development. Suitable for both new users and those who have been struggling for a while, we’ll show you how Git really works, not just the commands you’ll need but the impact you are having on both your local repository and the remote.

You’ll learn all about branches and strategy. You’ll work with the index to manipulate code in your local repository and perform merges while solving conflicts. Finally, you’ll dive deep into understanding git’s internal setup so collaborating with other users wont come as a surprise. You’ll be prepared for whatever your colleagues do next.

Pre-Requisites

  • Access to a laptop
  • Internet connection

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 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 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 Sections

1. Workflow

2. The Status command

3. Ignoring file types

  •  Negation in ignore files

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 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. Rebasing

  • autostash

11. 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 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 Sections

1. Branching Strategies

2. Structural Strategies

Lab Exercises

1. A flexible exercise implementing the strategy you intend to use moving forward

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

I really enjoyed the course. Git Essentials was exactly the course we needed. I think the emphasis on getting to a place where we can reason about git (rather than just learning some basic use cases) was the right choice. Thanks very much.

Anon, G-research
Share on facebook
Share
Share on google
Share
Share on twitter
Share
Share on linkedin
Share

Related Courses

    Aaron Rowsell quote banner
    Aaron Rowsell quote mobile

    Looking for more information?

    To find out more about how you and your teams could benefit from Clearvision's Agile Training, talk to one of our friendly experienced representatives. Clearvision, enabling teams to reach their full potential.

    Platinum-Solution-Partner-Enterprise@2x1

    A Platinum Solution Partner since 2007, Clearvision became the first European Partner to be declared 'Enterprise Ready' by Atlassian in 2012. Our unrivalled industry expertise means the Clearvision team is ideally positioned to help you get the most value out of tools and teams.

    Download our training brochure