Git is a distributed version control system that was originally written as a management of Linux kernel code. After the launch, Git has also been a big success in other projects. GitHub currently has more than 1 million developers and is free to host public projects. GitHub makes version control easier, and multi-person collaboration coding is easier. Students who have used SVN should know that there is no way for developers to submit completed code without the support of the network. GitHub supports offline submissions, which are actually submitted to the local repository. The project code for each developer clone is a complete repository that can be easily restored with local storage when remote or other collaborative developer code cannot be recovered. When the code needs to be branched, other version control software is slow in a large number of files, and GitHub does it almost instantaneously, and requires only one command. The convenience of GitHub and comparisons with other similar software are not the focus of this article. Let's take a step-by-step setup of the GitHub environment (for example, the Windows operating system).
First, you need to register for a GitHub account.
Then, download the GitHub Windows client. https://msysgit.github.io/
1. The installation process, the default can be. Then in the Windows Start menu, open Git/git Bash and need to tell GitHub that the username you want to use
" Your Name here "
2. Set up your mailbox
" [email protected] "
3. Create a project on GitHub
Open https://github.com/, add repository
Then fill in the project name and other information,
When completed, the following
4.clone Project to Local
By the address in the lower right corner, after copying, open git Bash and execute the following code:
git clone https://github.com/mingcaoyouxin/weibo.git
5. Submit your Code
After step 4, we will get a Weibo folder in our workspace, and we will copy my completed Weibo code into this directory,
Using git status in Git bash, we can see the corresponding changes (first to enter the Weibo working directory)
Then use git Add. Add all the changes to the buffer
Then use git commit-m "Memo info" to submit changes to the local repository
The results of the implementation are as follows:
Finally commits the code to the remote server, prompts for the user name password
Log on to GitHub and open the appropriate repository page to see what you just submitted:
At this end, you've completed GitHub's environment build and simple one-time code submission!
This article is reproduced from:
http://blog.csdn.net/gavincook/article/details/11992827
Getting Started with GitHub