preface

The most basic function of Git is version control. For example, if you write a document and your boss keeps asking you to change it, the stupid person will change it directly on the original document, and the smart person will copy the original document and change it on the copy, and the boss will say that your third version is better. The smart one simply copied the third edition and sent it to the client.

Git common commands

This is a common git command (if you don’t have Git, download git first). Web site: https://git-scm.com/ )

Basic use of Git

First we need to understand the following process:

First, we need to set up a remote warehouse (Gitee warehouse) https://gitee.com/ )

Clone the link of the remote warehouse after it is created

Create an empty folder and open the terminal to enter the command

Git cloneCopy the code

At this point you have successfully cloned the remote repository files

4. Modified code to submit to remote warehouse

Git commit -m'information'Git pull (the opposite of git pull, which is used to pull the code with the latest changes)Copy the code

Like this then you push success! Go to Gitee and check out the files you’ve modified.

Conclusion:

This is a simple git operation done, I hope to help you, if there is something wrong, I hope to dig friends in the comments section more pointed out.