how to install git mac code example Example 1: download git for mac $ brew install git Example 2: install git bash in ubuntu $ sudo apt-get install install-info