install git in mac code example Example 1: download git for mac $ brew install git Example 2: git install $ sudo apt install git-all