Curriculum
Course: Git
Login
Text lesson

Git Intro

What is Git?

Git is a widely-used version control system created by Linus Torvalds in 2005 and maintained by Junio Hamano since then.

It is used for:

  • Tracking code changes
  • Identifying who made changes
  • Facilitating coding collaboration

What does Git do?

  • Manage projects using Repositories
  • Clone a project to work on a local copy
  • Control and track changes through Staging and Committing
  • Use Branching and Merging to work on different parts or versions of a project
  • Pull the latest project version to your local copy
  • Push local updates to the main project

    Working with Git

  • Initialize Git in a folder to create a Repository.
  • Git then creates a hidden folder to track changes within that folder.
  • Any changed, added, or deleted file is considered modified.
  • You choose the modified files you want to Stage.
  • Staged files are committed, prompting Git to save a permanent snapshot of those files.
  • Git enables you to view the full history of every commit.
  • You can revert to any previous commit.
  • Instead of storing a separate copy of every file in each commit, Git tracks the changes made in each commit.

    Why Git?

    Over 70% of developers use Git!

    • Developers can collaborate from anywhere in the world.
    • They can view the complete history of the project.
    • They can revert to earlier versions of the project.

    What is GitHub?

    • Git is distinct from GitHub.
    • GitHub provides tools that utilize Git.
    • GitHub is the largest source code host globally and has been owned by Microsoft since 2018.
    • This tutorial will focus on using Git with GitHub.