首页 > 其他 > 详细

Git---Git及GitHub使用笔记

时间:2016-08-20 13:12:22      阅读:109      评论:0      收藏:0      [点我收藏+]
一、远程项目获取(克隆)
syntax:
$ git clone <版本库的网址>
$ git clone <版本库的网址> <本地目录名>
example:
$ git clone https://github.com/jquery/jquery.git
$ git clone http[s]://example.com/path/to/repo.git/
$ git clone ssh://example.com/path/to/repo.git/
$ git clone git://example.com/path/to/repo.git/
$ git clone /opt/git/project.git 
$ git clone file:///opt/git/project.git
$ git clone ftp[s]://example.com/path/to/repo.git/
$ git clone rsync://example.com/path/to/repo.git/
二、代码提交
$ git pull
$ git add .
$ git commit -m "update project"
$ git push origin master
三、打标签
$ git tag
$ git tag -d 1.0
$ git push origin --delete tag 1.0
$ git tag 1.0
$ git push --tags

Git---Git及GitHub使用笔记

原文:http://www.cnblogs.com/ysjshrine/p/5790219.html

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