
上QQ阅读APP看书,第一时间看更新
Time for action — installing and configuring Git
Get ready! We are going to install Git onto our computer using Homebrew.
- Open Terminal.
- Run the following command to install Git using Homebrew:
brew install git
- Terminal will download and install Git for you in just a matter of moments. It will then respond with a success message telling you that Git has been installed.
- After Git has been installed, you need to configure it so that it knows who you are when you commit changes to data. Run the following commands to identify yourself and make sure to fill in your own information where I've put
Your Name
andyour_email@domain.com:
git config global user.name "Your Name" git config global user.email your_email@domain.com
What just happened?
We just installed Git from the source using Homebrew. We then configured Git to use our name and e-mail address. These settings will make sure that any changes that are committed to source control from this machine are identified.