Document directory
- Git
- Github
- Learning Materials
Git
Git is an open-source distributed version control system for efficient and high-speed processing of project version management from very small to very large. Originally written by Linus Torvalds, it is used as the management of Linux kernel code. After its launch, Git has also achieved great success in other projects, especially in the Ruby community.
Github
Github is a hosting platform for open-source and private software projects. It is named GitHub because it only supports Git as the only version library format. GitHub can host a variety of git libraries and provide a web interface, but unlike other services such as SourceForge or Google Code, GitHub's unique selling point is the simplicity of branch from another project. Contributing code to a project is very simple: first click the "fork" button of the project site, and then check out the code and add the modifications to the code library just separated, finally, we apply for code merging from the project owner through the built-in "pull request" mechanism. The above introduction is taken from oschina.net. Next we will introduce how to use Git to manage Github projects in windows.
1. Create an account on Github. This is simple and will not be repeated.
2 download and install Git: http://code.google.com/p/msysgit/downloads/list installation is very simple, all the way to Next can be.
3. log on to GitHbu and create a New repository (New repository) named HelloWorld. After the repository is created successfully, see:
4. An empty code repository is created. Next, create a HelloWorld project locally and push it to Github. Create the directory structure of D: \ GitProject \ HelloWorld.
5. Open the Git command line Git base and enter the following command to provide the identity, mainly the user name and email address:
6. Run the cd command to go to The created HelloWorld directory and use git init to initialize the current directory. A hidden directory of. git will be generated in this directory:
7. Upload a readme.txt file in the D: \ GitProject \ helloworlddirectory, and write "my first hello world project!" to the file !", Then, use the git add command and the git commit command to add it to the library.
8. The following are the most critical steps. To submit a local code library to Github, you must first use a command to create a key, which will be used in Github settings.
9 my system is windows server 2008R2. The generated key is in the C: \ Users \ Administrator \. ssh directory. Open the id_rsa.pub file and copy all the content in it.
10. Click "Account Settings" on Github to go to the Settings page. Select "SSH Public Keys" and click "add another public key".
11. paste the copied key content into the corresponding box.
12. Run the following command to check whether the setting is successful.
13 now everything is ready. You can use commands in Git base to push local code to Github.
14. Refresh the project page in Github as follows:
Learning Materials
Http://www.worldhello.net/gotgithub/index.html
Http://www.cnblogs.com/wojilu/
Download Pro Git Chinese Version
A good Git ppt Introduction