Download the Git command file on your computer and install it to register.
The specific insights are as follows:
-
There are several versions of Git files, of which msysgit is for Windows. Git files can be downloaded by searching for Git in Baidu .
-
After the download and installation is complete, find "Git Bash" in "Git" in the start menu to open Git.
-
Registering user information: First configure the Git command with your user information.
-
After the configuration is complete, use the list in $ git config to view the configured user information,
-
Create a repository $ cd d: and cd MyGit into the newly created Git directory. Repository is also known as warehouse, English name repository, you can simply understand that a repository is a directory.
-
After finishing, select $ mkdir project # to create the project directory, $ cd project # to enter the project directory.
-
Finally, enter git init # to initialize the git repository. This command will create a new .git directory in the current directory to store the relevant information of the git warehouse, and turn this directory into a warehouse that git can manage. It is more convenient for your management.