Git-初始化

1 git init  #初始化
2 git add README.md #创建readme
3 git commit -m "first commit" #确认修改
4 git remote add origin https://github.com/TigerEatGrass/shipyard.git #与远程建立关系
5 git push -u origin master #推送修改
6 git config --global user.name lijianzhi
7 git config --global user.email lijianzhi@baidu.com

 

Git知识图谱:https://segmentfault.com/a/1190000002533334

简明指南:http://rogerdudler.github.io/git-guide/index.zh.html

posted @ 2017-02-13 20:00  SapphireCastle  阅读(94)  评论(0编辑  收藏  举报