With the help of a lot of information on the Internet, I learned the basic use of GitHub and tried some common commands. In order to facilitate the memory summed up their own learning content.
1. First you need to register an account on GitHub's official website, and create a new repository, choose this public for others to view, but also free, do not need to import warehouse selection initialization, Finally select the appropriate gitignore (ignoring certain types of files) and license (license), I have no choice when trying, but the real use of GitHub needs to choose the appropriate Gitignore and license.
Copy the project address for subsequent clones.
2. Install the appropriate GIT client on your computer, choose a different client for different systems, and run the GIT Bush program after the installation is complete. Enter Git clone and paste the address you just copied to the rear.
The local library and remote library contents are identical after cloning.
You can use the LS command to see a list of the contents of the current warehouse, and use PWD to view current location information.
3. Add the "Hello World" file and the New.txt two files by typing git add and adding the name of the file to add, the folder name in ". Enter git commit–m "content" and submit it to the local version control bin.
4. Enter Git push-u origin master to synchronize the local and remote version silos.
At this point you see that the content in the remote repository changes and the local warehouse is the same.
5. In addition to this also tried a part of the command: Pull information from the server Git pulls Origin master; View all branches git branch-a; view commit change record git log.
In addition to the above commands, there are many common commands such as: Update information git fetch BRANCH2; View all branches on repository git remote; View remote branch git branch-r; Delete branch git branch-d * * * New branch GIT Branch * * *; switch branch git checkout * * *; View status git status and so on. In the later use and learning will try to more aspects of GitHub.
Reference: Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 00137628548491051ccfaef0ccb470894c858999603fedf000 (official site of Liao Xuefeng website git tutorial)
http://blog.csdn.net/javafreely/article/details/18217273 (javafreely's column git tutorial)
Http://sentsin.com/web/666.html (Gitignore detailed)
Http://www.cnblogs.com/cspku/articles/Git_cmds.html (Git common commands)
Lauderdale Marina
Modern software engineering Work Chapter II learn GitHub notes