1, first need to download Git client, direct Baidu has, install directly click Next can.
2, need to register git account , address http://git.oschina.net/
3, create a project, set up a remote library, do not check the Readme, click Create
4, after the completion of the creation will appear some prompt commands, as follows:
5, at this time need to operate the local installed git client, install a local library, open the installation directory, click Git-bash.exe will appear DOS window, as follows:
6. Copy the code of the GIT account to create the project
7, press ENTER, if the copy code is successful, you will be prompted to enter a user name and password, enter and press ENTER if the following conditions are successful, then view the local installation directory will appear in the Test folder (local library), There are readme.md files in the folder, check the online library will have just uploaded readme.md file
At this point, the local library and the remote Library have established a connection to upload the project file, the next step is to understand the operation of GIT commands, the following is the simplest of several commands.
git add filename//Add a file to git index
Git commit-m "code submission Information"//Submit
Git push-u origin master//upload to remote
LS//view current directory
git status//view status