随笔分类 -  Git

摘要:如果公司在Github建立了私有服务器,项目进行中需要多人多地协同工作。这时需要一套完整规范的代码提交流程。分享一下我们的经验。第一步建立中央仓库upstream,然后建立fork:Click the Fork button on the original repos... 阅读全文
posted @ 2018-01-07 11:48 IronJJ 阅读(854) 评论(0) 推荐(0)
摘要:- 在本地, 打开目标 repo 的 .git/config 文件, 找到 `[remote "orgin"]`, 在其下添加或修改一行:`fetch = +refs/pull/*/head:refs/pull/origin/*`- 执行 `git fetch ori... 阅读全文
posted @ 2018-01-07 11:40 IronJJ 阅读(343) 评论(0) 推荐(0)
摘要:简介Git是目前最为流行的版本控制工具和分布式开发的最好用的工具。Github虽然非常方便,但是由于普通用户只能建立public的repository,只有付费用户才能创建private repository。因此,在平时工作中一些无法公开项目只能自己搭建一个Git服... 阅读全文
posted @ 2015-10-25 16:38 IronJJ 阅读(465) 评论(0) 推荐(0)
摘要:不小心写错committing message并且已经提交怎么修改呢?Easiest solution (but please read this whole answer before doing this):git rebase -i (这里可以用要改的那次的ha... 阅读全文
posted @ 2015-01-05 10:02 IronJJ 阅读(280) 评论(0) 推荐(0)