首页 > 其他 > 详细

github-提交仓库

时间:2016-06-04 00:16:38      阅读:230      评论:0      收藏:0      [点我收藏+]

git提交仓库主要分3快

1.用命令git add告诉Git,把文件添加到本地仓库(可以用.代替提交所有)

$ git add readme.txt

 

 

2.用命令git commit告诉Git,把文件提交到仓库:

$ git commit -m "wrote a readme file"
[master (root-commit) cb926e7] wrote a readme file
 1 file changed, 2 insertions(+)
 create mode 100644 readme.txt

 

 

3.用push提交到远程仓库

$ git push

 

github-提交仓库

原文:http://www.cnblogs.com/hwaggLee/p/5557853.html

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