Use Git to manage your Android code in a Windows environment

Source: Internet
Author: User
Tags version control system

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.