tags: Git usage
Use of the environment: win10
Use Version:
First, know Git
Git is the world's most advanced distributed version control system, then it has no central server, each person's computer is a complete repository, so that when things do not need to work, because the versions are in their own computer on. Since everyone's computer has a complete repository, how much how individuals collaborate it? For example, to change their own files on the computer A, the others are changed A file on the computer, then, you just need to give each other their own changes pushed between the two, we can see each other's changed.
Two, win10 installed and turned Git
You can download and install its own from the Internet, then the default installation.
This is my installed version. After installation is complete, double-click the desktop icon
, Then pop up a command window something similar, indicating that the installation was successful, as follows:

Because Git is a distributed version control system, you need to create a user name and mailbox as a logo, you can specify your own user name and mailbox, I was like this:

Three, Git basic operation
1. Create Repository
Repository also known as warehouse, (repository), equivalent to a directory, all files in this directory are Git to manage, modify each file, delete, Git can be tracked at any time in order to "restore"
Create repository as I created in the www directory D disk, create a testgit repository using the command mkdir testgit

By command git init this directory can become a warehouse management:

At this time will be one .git directory testgit directory, which is managed to track versions of Git
2, to add files to the repository







3, to see history
To continue to modify the file, and then add a line cccccc, and submit
View historical change log, the command: git log or git log --pretty = oneline

4, version rollback


4, revoke modify, and delete files

operation just now would like to withdraw, in addition to the above recovery method can also use the command: git checkout - test.txt


Fourth, the remote repository
First, sign up for a github account
Since the transmission between the local repository git and GitHub warehouse encrypted by SSH, so there need to set




1, add a remote library
Log on GitHub, in accordance with the following:

This will successfully created a new Git repository
2, the local repository pushed to GitHub repository, follow the prompts to run the command:

But here there was an error message, you need to change the DNS server 114.114.114.114 (not elaborate here)

Run the command again, there will be prompt interface, you need to log on GitHub

You can see uploaded successfully

2019 Unicorn Enterprises heavily recruiting engineers Python standard >>> Thanks linux Roc "look Diary learn git" tutorial series GitIt is madeLinus TorvaldsIn order to better manag...
Git study notes Title VII, the main referenceLiao Xuefeng of Git tutorial, A good memory as bad written, documented learning outcomes, come on! Use GitHub We have been to GitHub as a remote library to...
Disclaimer: This is just a personal study note, only for my actual situation, if you have any dislikes, please comment. Explanation: There is a$ Symbol, This is just to simulate what the terminal look...
1. Clone the local warehouse to the remote warehouse Find this page, click to create a warehouse, enter the warehouse name learngit and create directly. Then run git remote add origin [email protected]: ...
git installation and command interpretation git install----windows Create a repository and submit code to the local repository Code version rollback How to change the style of text Insert links and pi...
Git and Github Git is currently the world's leading distributed version management system (local) Github is an online project hosting platform (online) Simply understand the relationship between the t...
Git usage and version control All the materials are fromhttps://morvanzhou.github.io/tutorials/others/git/. This article is just a note record of personal study. If you want to learn, I strongly recom...
Course address: 2. Use Git 2.1 Install Git Git installation-excerpt 2.2 Use Git Set basic information Create & initialize a new warehouse Add files to the warehouse Practice record Modify warehous...
1. Configure github in idea File-Settings-search github in the upper left corner. If not, go to the plugin to download github. After clicking, jump directly to the browser (github is logged in) author...