macos git code example Example 1: install git ubuntu $ sudo apt install git Example 2: git mac xcode-select --install