关于github

 https://github.com/marry1234/test
关于github的创建及库的创立的心得
开始使用git:
  1. 在本机上安装git,http://progit.org/book/
  2. 使用github充当远端服务器,托管本地代码:www.github.com
  3. 在github上注册好帐号,创建一个仓库,就可以将本地仓库托管上去了
  4. 剩下的就是从原理上学习git,熟练掌握git的常用命令,不懂的就git --help。
git常用命令:
  • git config :配置git
  • git add:更新working directory中的文件至staging area。git add .更新所有的文件
  • git commit:提交staging area中的文件至git repository中。git commit -m 'message'
  • git status:查看状态
  • git diff:查看改动情况
  • git remote:查看远端服务器别名,加上-v显示url信息
  • git remote add server_url local-alias:添加远端服务器
  • git clone project_url local_alias:拷贝项目到本机中
  • git push server_url/local-alias:更新远端服务器仓库
  • git pull server_url/local-alias:更新本地服务器仓库
原文地址:https://www.cnblogs.com/marry0121/p/4456578.html