get latest version of git for mac code example Example: git update to latest version mac brew install git