Previously described in Windows using the Git tool to download Android source code, Windows environment through Git to get the Android sources, here I use the Git tool to manage my own code, Git is a distributed project management tool and CVS and SVN are centralized version control system The biggest problem is the need to network to work, distributed version control system does not have a "central server", everyone's computer is a complete version of the library, so that when you work, There is no need for networking, because the repository is on your own computer, distributed and centralized through the following two charts will be clear.
When you want to use a lot of Linux/unix tools under Windows, you need to cygwin such a simulation environment, GIT is the same. Cygwin installation and configuration are more complex, it is not recommended that you toss. However, a man has already put the simulation environment and git are packaged, called Msysgit, only need to download a separate EXE installation program, and nothing else to install, absolutely good.
Msysgit is a Windows version of Git, downloaded from http://msysgit.github.io/, and then installed by default.
Start git as specified after installation
You can also right-click to start
The following interface appears, indicating that the installation was successful
Setting a global git configuration after successful installation
$ git config--global user.name "Your name" $ git config--global user.email "[Email protected]"
Create a directory under the appropriate path to manage the repository
Initializing the repository directory: Git init
Create a new "Readme.txt" file with the following content
Git is a version control system. Git is free software.
Add the "Readme.txt" file to the repository: Git add readme.txt
Use the command git commit to tell git to commit the file to the repository: Git commit-m "wrote a Readme file" can be added multiple times, and finally commit
More details are presented here: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000