how to install git in mac code example Example 1: install git ubuntu Click to copy$ sudo apt install git Example 2: download git for mac Click to copy$ brew install git