download git for mac code example
Example 1: download git for mac
$ brew install git
Example 2: install git mac book m1
$ sudo dnf install git-all
Example 3: git mac
xcode-select --install
Example 4: install git bash in ubuntu
$ sudo apt-get install install-info