What is Git?
Git is a free, open-source version control system. It keeps a history of every change you save, so you can see who changed what, and go back to an earlier version.
Git runs on your own computer. Services like GitHub, GitLab and Bitbucket host Git repositories online, so you can share them with others.
Check that Git is installed
git --version
git version 2.44.0
Start using Git in a folder
Every Git command starts with git. Here we create a project folder and turn it into a repository:
mkdir myproject
cd myproject
git init
Initialized empty Git repository in /Users/user/myproject/.git/