随笔分类 -  Git

摘要:要点: GIT 或 SVN 的 hook 执行之前,会将所有环境变量清空,因此在其中执行命令时,必须指定绝对路径或重新设置必要的环境变量,如:$HOME 等 修改为正确的名称,如:post-commit、post-update 等 添加执行权限 git hook 执行时需要通过 --git-dir 阅读全文
posted @ 2017-07-12 11:35 范辉 阅读(786) 评论(0) 推荐(0)
摘要:最后放置的都是数据最终到达的仓库分支名称 对于pull来说,是拉到本地,所以本地仓库分支名称写在最后 git pull [--force] [remote repo]:[my repo] 对于push来说,是推到远和仓库,所以远程仓库分支名称写在最后 git push [--force] [my r 阅读全文
posted @ 2017-07-05 19:16 范辉 阅读(443) 评论(0) 推荐(0)
摘要:前注:常见‘坑’ 不要使用 2.14 版本 gerrit.conf 中 [sendemail] 部分必须有 from = ... 字段,否则无法添加邮箱 gerrit 以用户组为单位划分权限,先将用户加入组,然后对每个项目按组分派权限 clone 需要 Read 权限,推送需要 Push 权限,上传 阅读全文
posted @ 2017-05-04 10:16 范辉 阅读(171) 评论(0) 推荐(0)
摘要:1) Register an openid account https://login.ubuntu.com/+login 2) Custom settings set SSH pubkey set username and email other 3) Update the IP address 阅读全文
posted @ 2017-05-03 22:17 范辉 阅读(425) 评论(0) 推荐(0)
摘要:Install(Ubuntu 17.04): gerrit.config: <可选> nginx.conf: <可选,nginx 认证需要> Create pwd.conf: Ops: ... 阅读全文
posted @ 2017-05-02 16:53 范辉 阅读(559) 评论(0) 推荐(0)
摘要:温故而知新,可以为师矣。 Git 布局 工作区 >暂存区 >本地仓库 >远程仓库 Create Repository git init PATH git add PATH git commit -m CONTENTS 一次性 pull/push 所有分支 git pull/push origin ' 阅读全文
posted @ 2017-04-16 21:57 范辉 阅读(244) 评论(0) 推荐(0)
摘要:http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c6 阅读全文
posted @ 2014-12-20 07:45 范辉 阅读(191) 评论(0) 推荐(0)