git的搭建
蓝白天际线
本人从事linux的嵌入式开发.
展开
-
repo 的使用
1 repo介绍Android 使用 Git 作为代码管理工具,开发了 Gerrit 进行代码审核以便更好的对代码进行集中式管理,还开发了 Repo 命令行工具,对 Git 部分命令封装,将百多个 Git 库有效的进行组织。1.1 清单库文件介绍一个清单库可以包含多个清单文件和多个分支,每个清单文件和分支都有对应的版本。清单文件以xml格式组织的。举个例子:Ø转载 2015-09-10 10:16:34 · 809 阅读 · 0 评论 -
repo回退当前分支下所有仓库到指定日期前的最新代码版本
执行下面这样的repo命令就行了: repo forall -c 'commitID=`git log --before "2017-03-17 07:00" -1 --pretty=format:"%H"`; git reset --hard $commitID'参数说明:forall 操作分支中的所有仓库-c 只操作当前分支--before 早于指定时间点的提交转载 2017-04-20 17:07:26 · 10615 阅读 · 4 评论 -
怎么自动生成change-id
提交代码的时候,如国需要自动生成 change-id, 则使用下面命令,设置一下。gitdir=$(git rev-parse --git-dir); scp -p -P 29418 zhoushimin@10.10.96.213:hooks/commit-msg ${gitdir}/hooks/commit-msg原创 2017-09-20 09:35:27 · 7868 阅读 · 0 评论 -
diffie-hellman-group1-sha1
在使用git fetch的时候,遇到了如下错误Unable to negotiate with 192.168.4.28 port 19428: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1fatal: Could not read from remote repository.转载 2017-11-07 16:34:41 · 2772 阅读 · 0 评论