Tsallaka zuwa abun ciki
Justice Tech School

Git Introduction

Git records snapshots of your project over time, so you can go back, compare versions and work with others without overwriting each other. It is distributed: every copy holds the full history. GitHub, GitLab and Bitbucket host Git repositories online.

Examples start in a fresh empty repository. Commit hashes are different on every machine, so examples print messages instead.

Example
git --version | cut -d -f1
git status

Result

On branch main

No commits yet

nothing to commit (create/copy files and use "git add" to track)

Exercise

Which command starts a repository?

git 

Quiz Test

What does Git mainly do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.