use of git
1. Pre-requirements
1.git installation
2. Register Gitee and create a warehouse
Then remember the URL below.
Then clone the warehouse to the cloud server. Remember to enter the gitee account and password.
Check the directory, you can find that the warehouse is already in the directory.
Enter the directory, and the .git inside is the local warehouse.
Two. git three tricks
First we need to clone the file we want to upload into testing-warehouse-testing.
first strike
First use git add to add the files in this directory to the cache.
second ax
Then use git commit to submit to the local. Note that the submission log must be written here, and it cannot be written indiscriminately, so that it can be viewed later. Here you can use git status to see if there are files that need git commit.
If you are installing Git for the first time, it will ask you to fill in the information. Configure email and username.
Just run both commands. After the configuration is complete, it can be submitted normally.
The third ax
Use git push to synchronize the local warehouse with the remote warehouse.
The first push also encountered a problem, just execute the following line of code.
This completes the basic operation of git.