安装及用法

公司内部Phabricator服务器:http://192.168.51.75

Phabricator设置

1)如果git clone使用http的地址,需要设置VCS密码:

git clone时输入的密码为VCS Password

2)如果git clone使用ssh的地址,需要上传ssh公钥:

如果电脑已经生成过ssh密钥,使用如下命名查看:

cat ~/.ssh/id_rsa.pub

如果没有生成ssh密钥,或者想重新生成密钥:

ssh-keygen -t rsa -C "xxx@hori-gz.com"

Arcanist安装

1) 安装软件包php、git,如果有跳过这步

brew install php
brew install git

2)安装Arcanist

mkdir somewhere/
cd somewhere
somewhere/ $ git clone https://github.com/phacility/libphutil.git
somewhere/ $ git clone https://github.com/phacility/arcanist.git

3)配置环境变量

export PATH="$PATH:/somewhere/arcanist/bin/"

4)arc全局配置:

arc set-config default http://192.168.51.75
arc set-config editor "vim"

在项目工作目录下创建配置文件 .arcconfig(每个项目我会创建好了,跳过)

5)安装Arcanist证书,然后根据提示复制token

cd yourproject/
yourproject/ $ arc install-certificate

Arcanist使用

1)提交审核请求,不需要使用git add、git commit

arc diff

2)代码通过了审核后(可以在phabrictor网站上看到),发布代码

arc land

3)查看所有的提交状态

arc list

results matching ""

    No results matching ""