github-提交仓库

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

 

posted @ 2016-06-03 22:59  243573295  阅读(308)  评论(0编辑  收藏  举报