码迷,mamicode.com
首页 > 其他好文 > 详细

github-提交仓库

时间:2016-06-04 00:18:40      阅读:227      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!