how to use git command on windows

Download the Git command file on your computer and install it to register.

 

The specific insights are as follows:

  1. There are several versions of Git files, of which msysgit is for Windows. Git files can be downloaded by searching for Git in Baidu .

  2. After the download and installation is complete, find "Git Bash" in "Git" in the start menu to open Git.

  3. Registering user information: First configure the Git command with your user information.

  4. After the configuration is complete, use the list in $ git config to view the configured user information,

  5. 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.

  6. After finishing, select $ mkdir project # to create the project directory, $ cd project # to enter the project directory.

  7. 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.

Guess you like

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