随笔分类 -  Git

摘要:Git是分布式版本控制系统 Git创造者Linus,也是linux内核的设计者。 生成git仓库 把文件添加到git仓库 把文件修改添加到暂存区(stage)。 若要添加当前目录下所有文件 提交文件到仓库 -m参数为本次提交的说明。把暂存区的所有内容提交到当前分支(默认git会创建master分支) 阅读全文
posted @ 2016-10-29 22:46 派。 阅读(166) 评论(0) 推荐(0)
摘要:打标签 git tag是命令 -a v1.4是增加名为v1.4的标签,-m标签注释 注:提交修改之后打标签 阅读全文
posted @ 2016-10-28 18:46 派。 阅读(170) 评论(0) 推荐(0)
摘要:Git global setup git config --global user.name "lh" git config --global user.email "lh@rede.com" Create a new repository git clone git@gitlab.rede.com:lh/l.git cd l touch README.md git add README.m... 阅读全文
posted @ 2016-09-28 16:57 派。 阅读(753) 评论(0) 推荐(0)
摘要:git上传代码到github 阅读全文
posted @ 2016-06-15 21:45 派。 阅读(315) 评论(0) 推荐(0)