how to install git for windows code example

Example 1: install git

# On Windows 10 
 https://git-scm.com/download/win

# Installing on Linux
sudo dnf install git-all

# on a Debian-based distribution, such as Ubuntu, try apt:
sudo apt install git-all

# On Mac
https://git-scm.com/download/mac

Example 2: download git for mac

$ brew install git

Example 3: install git

$ sudo apt install git-all

Example 4: latest version of git

/ we need to type both of them git fetch origin git reset --hard origin/master