git install

1. Download the latest version of git

window

1. After downloading git in the window, it is installed by default. After the installation is complete, find "Git" -> "Git Bash" in the start menu, and something similar to the command line window pops up, indicating that the Git installation is successful!

2. Open git bash

3. Tell Git your name so your commits can be tagged correctly. $Enter the following after

$ git config --global user.name "YOUR NAME"

4. Tell Git the email address to associate with your Git commit. The email address you specify should be the same as the one in the email settings . How to keep your email address hidden, please refer to: Keep your email address private .

$ git config --global user.email "YOUR EMAIL ADDRESS"

 

Because Git is a distributed version control system, every machine must report itself: your name and email address. You might be worried, what if someone deliberately impersonates someone else? There is no need to worry about this. First of all, we believe that everyone is a kind and ignorant masses. Second, there are ways to check if there are people who are pretending to be.

Pay attention git configto the parameters of the command --global. Using this parameter means that all Git repositories on your machine will use this configuration. Of course, you can also specify different usernames and email addresses for a repository.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324838504&siteId=291194637