首页 > 其他 > 详细

Git & Git Hub

时间:2017-06-17 14:07:43      阅读:401      评论:0      收藏:0      [点我收藏+]

…or create a new repository on the command line

echo "# hello-world" >> README.md
  git init
  git add README.md
  git commit -m "first commit"
  # https 方式提交
  # git remote add origin https://github.com/sharkgit1976/hello-world.git
  # SSH 方式提交
  git remote add origin git@github.com:sharkgit1976/hello-world.git
  git push -u origin master
  # 配置好密钥方式提交后,可以不用输入用户名和密码了
  git push  origin master
 
…or push an existing repository from the command line

git remote add origin git@github.com:sharkgit1976/hello-world.git
  git push -u origin master
 
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
  ...或从另一个存储库导入代码
您可以使用Subversion,Mercurial或TFS项目的代码初始化此存储库。

 

技术分享

 

技术分享

 

技术分享

 

技术分享

 

 

 

手动设置连接 GitHub 方式

技术分享

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

底部

Git & Git Hub

原文:http://www.cnblogs.com/xiguatian/p/7040033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!