参考教程:
Ubuntu下:http://blog.csdn.net/hanhailong726188/article/details/46738929
Windows下:https://www.cnblogs.com/xianfangloveyangmei/p/6854103.html
期间遇到过一些问题:
1)git pull origin master
fatal: Couldn't find remote ref master
则需重新输入$ git remote add origin git@github.com:djqiang/gitdemo.git
2)git push 提示 Everything up-to-date
最后成功的效果图: