Use Git to manage your Android code in a Windows environment

Source: Internet
Author: User
Tags version control system

I have described the use of GIT tools under Windows to download Android source code, Windows environment through Git to get the Android source code, 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 number control system centralized version number control system The biggest problem is the need for networking talent, distributed version number control system does not have a "central server", each person's computer is a complete version number library, so , you don't need to be networked when you work, because the version number is on your own computer. Distributed and centralized through the following two graphs will be clear point




When you want to use very many Linux/unix tools under Windows, you need to cygwin this kind of simulation environment, GIT is the same. Cygwin installation and configuration are more complex, it is not recommended that you toss. It's just that. An expert has already packaged the simulation environment and git, called Msysgit. Just need to download a separate EXE installer, and nothing else to install. Absolutely usable.
Msysgit is a Windows version of Git, downloaded from http://msysgit.github.io/. Then press the default option to install it.

Start git as specified after installation


can also right-click to start


such as the following interface appears. The instructions were successfully installed


Setting a global git configuration after successful installation

$ git config--global user.name "Your name" $ git config--global user.email "[Email protected]"

Create a folder under the appropriate path to manage the version number library


Initialize the version number Library folder: Git init


Create a new "Readme.txt" file with content such as the following

Git is a version control system. Git is free software.

Add the "Readme.txt" file to the repository: Git add readme.txt

Git commit tells Git to commit the file to the repository: Git commit-m "wrote a Readme file" can add multiple times, and finally commit

GIT website: http://git-scm.com/

Here is more specific: http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

References:

1.http://rubynroll.iteye.com/blog/203133

Manage your Android code with git in Windows environment

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.