随笔分类 - REPO
摘要:Apache 2 ConfigurationTo run Gerrit behind an Apache server usingmod_proxy, enable the necessary Apache2 modules: a2enmod proxy_http a2enmod ssl ; # optional, needed for HTTPS / SSLConfigure an Apache VirtualHost to proxy to the Gerrit daemon, setting theProxyPassline to use thehttp://URL...
阅读全文
摘要:From:http://fatalove.iteye.com/blog/1340334gerrit清单库是用来配合repo使用的。清单库中列出了gerrit服务器上的其他版本库。客户端通过repo脚本下载清单库后,脚本会解析清单库中列出的库并自动下载。首先执行repo init,下载版本库,然后执行repo sync下载所有库的代码。首先将repo版本库克隆至本地并push到gerrit服务器。git clone https://android.googlesource.com/tools/repo创建一个空的清单库manifest.git,清单库中只有xml文件。在清单库中创建default
阅读全文
摘要:repo是使用python开发的一个用于多版本管理的工具,可以和git协作,简化git的多版本管理。repo安装:1、新建~/bin,并将此目录包含在path变量中(如果已存在,且已在path变量中,则此步忽略)1 $ mkdir ~/bin2 $ export PATH=~/bin:$PATH2、下载repo引导脚本$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo$ chmod a+x ~/bin/repo备注:此处url好像被墙了,需翻过去方可下载初始化Repo客户端
阅读全文
摘要:From:http://gitbook.liuhui998.com/4_9.html http://ihower.tw/blog/archives/2622相较于SVN这种commit就推送到远端伺服机,Git的commit之后,所有代码仍在本地端。所以,只要还没push出去分享给别人,commit logs是可以修改的。这种功能分厂强大,可以提供undo和rewrite commit history。如果用Git只会git commit,然后马上git push,那就没有充分利用Git强大的功能。Git提供了多种修复你开发过程中的错误的方法. 方法的选择取决于你的情况: 包含有错误的文...
阅读全文
摘要:From:http://itekblog.com/update-git-centos/1、下载RPMForge repocd /tmp# for 32 bit:wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3...
阅读全文
摘要:git、apache2、gerrit安装1、http://blog.csdn.net/benkaoya/article/details/86808862、http://fatalove.iteye.com/blog/1332881(注:gerrit为代码审核工具,git提交的代码需要先经gerrit审核)git简易指南http://rogerdudler.github.io/git-guide/index.zh.htmlhttp://www.androideng.com/?cat=52git版本管理工具(一)http://blog.csdn.net/ithomer/article/detail
阅读全文
摘要:添加git hooksgit库的钩子目录中有一个commit-msg脚本文件,可以在git执行commit时,在提交信息中自动添加一个唯一的Change-Idscp -P 29419 admin@127.0.0.1:hooks/commit-msg .git/hooks/注:这里的.git/hooks文件夹在你执行git clone后,本地生成的文件夹中查看gerrit服务启动状态的命令:netstat -ltnp | grep -i gerrit查看h2数据库命令:ssh admin@127.0.0.1:29418 gerrit gsql查看所有project命令:sshadmin@127.
阅读全文
摘要:From:http://www.cnblogs.com/ahauzyy/archive/2013/04/08/3043384.html说明:由于条件有限,我这里使用的是同一台centos的,但教程内容基本上通用。1.编译安装gitgit安装教程:http://blog.haohtml.com/archives/100932.安装gitosis$ yum install python python-setuptools$ git clone git://github.com/res0nat0r/gitosis.git$ cd gitosis$ python setup.py install网址:
阅读全文
摘要:From:http://stackoverflow.com/questions/7574459/prompted-for-password-on-git-pull-origin-branch[root@localhost test]# git pulladmin@127.0.0.1's passwo...
阅读全文

浙公网安备 33010602011771号