Git Phabricator第一次';arc焊盘';失败

Git Phabricator第一次';arc焊盘';失败,git,phabricator,Git,Phabricator,我已经安装并配置了Phabricator,所以它不会在web上显示警告。然后我尝试创建一个存储库并进行第一次git提交。我已接受修订,但当我尝试执行“arc land”时,它失败,并显示以下消息: -> % arc land Landing current branch 'master'. TARGET Landing onto "master", the default target under git. REMOTE Using remote "origin", the defau

我已经安装并配置了Phabricator,所以它不会在web上显示警告。然后我尝试创建一个存储库并进行第一次git提交。我已接受修订,但当我尝试执行“arc land”时,它失败,并显示以下消息:

-> % arc land
Landing current branch 'master'.
TARGET  Landing onto "master", the default target under git.
REMOTE  Using remote "origin", the default remote under git.
Exception
Branch "master" does not exist in remote "origin".
(Run with `--trace` for a full exception trace.)
如果我用“-trace”运行,我会得到:

ARGV  '/phabricator/arcanist/bin/../scripts/arcanist.php' 'land' '--trace'
LOAD  Loaded "phutil" from "/phabricator/libphutil/src".
LOAD  Loaded "arcanist" from "/phabricator/arcanist/src".
Config: Reading user configuration file "/home/xxx/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/Users/dkr/Code/knquant/test/.arcconfig".
Working Copy: Path "/test" is part of `git` working copy "/test".
Working Copy: Project root is at "/test".
Config: Did not find local configuration at "/test/.git/arc/config".
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> http://pb.xxxxxx.com/api/user.whoami
<<< [1] <http> 360,568 us
<<< [0] <conduit> 361,088 us
>>> [2] <exec> $ git symbolic-ref --quiet HEAD
<<< [2] <exec> 5,927 us
>>> [3] <exec> $ git rev-parse --symbolic-full-name 'master'@{upstream}
<<< [3] <exec> 4,846 us
>>> [4] <exec> $ git --version
<<< [4] <exec> 3,654 us
>>> [5] <exec> $ git ls-remote --get-url 'origin'
<<< [5] <exec> 4,085 us
>>> [6] <conduit> repository.query() <bytes = 227>
>>> [7] <http> http://pb.xxxxxx.com/api/repository.query
<<< [7] <http> 81,179 us
<<< [6] <conduit> 81,384 us
>>> [8] <exec> $ git symbolic-ref --quiet HEAD
<<< [8] <exec> 5,159 us
Landing current branch 'master'.
>>> [9] <exec> $ git rev-parse --symbolic-full-name 'master'@{upstream}
<<< [9] <exec> 4,147 us
>>> [10] <exec> $ git rev-parse --symbolic-full-name 'master'@{upstream}
<<< [10] <exec> 4,663 us
>>> [11] <exec> $ git symbolic-ref --quiet HEAD
<<< [11] <exec> 4,003 us
>>> [12] <exec> $ git rev-parse --symbolic-full-name 'master'@{upstream}
<<< [12] <exec> 4,160 us
TARGET  Landing onto "master", the default target under git.
>>> [13] <exec> $ git rev-parse --symbolic-full-name 'master'@{upstream}
<<< [13] <exec> 4,694 us
REMOTE  Using remote "origin", the default remote under git.
>>> [14] <exec> $ git diff --no-ext-diff --no-textconv --raw 'HEAD' --
>>> [15] <exec> $ git ls-files --others --exclude-standard
<<< [14] <exec> 4,833 us
<<< [15] <exec> 4,770 us
>>> [16] <exec> $ git diff-files --name-only
<<< [16] <exec> 5,004 us
>>> [17] <exec> $ git rev-parse --verify 'origin/master'
<<< [17] <exec> 3,919 us

[2016-03-03 01:38:51] EXCEPTION: (Exception) Branch "master" does not exist in remote "origin". at [<arcanist>/src/land/ArcanistGitLandEngine.php:101]
arcanist(head=master, ref.master=086f5399bfbb), phutil(head=master, ref.master=6ef9295e388d)
  #0 ArcanistGitLandEngine::verifySourceAndTargetExist() called at [<arcanist>/src/land/ArcanistGitLandEngine.php:13]
  #1 ArcanistGitLandEngine::execute() called at [<arcanist>/src/workflow/ArcanistLandWorkflow.php:296]
  #2 ArcanistLandWorkflow::run() called at [<arcanist>/scripts/arcanist.php:392]
ARGV'/phabricator/arcanist/bin/。/scripts/arcanist.php''land'--trace'
从“/phabricator/libphutil/src”加载“phutil”。
从“/phabricator/arcanist/src”加载“arcanist”。
配置:正在读取用户配置文件“/home/xxx/.arcrc”。。。
配置:在“/etc/arcconfig”中未找到系统配置。
工作副本:从“/Users/dkr/Code/knquent/test/.arcconfig”读取.arcconfig。
工作副本:路径“/test”是`git`工作副本“/test”的一部分。
工作副本:项目根目录位于“/test”。
配置:在“/test/.git/arc/Config”中未找到本地配置。
>>>[0]user.whoami()
>>> [1]  http://pb.xxxxxx.com/api/user.whoami
[3] $git rev parse--符号全名'master'@{upstream}
>[4]$git——版本
>[5]$git ls remote--获取url“origin”
>[6]repository.query()
>>> [7]  http://pb.xxxxxx.com/api/repository.query
[9] $git rev parse--符号全名'master'@{upstream}
>[10]$git rev parse——符号全名'master'@{上游}
>[11]$git符号参考——安静的头部
>[12]$git rev parse——符号全名'master'@{上游}
>[13]$git rev parse——符号全名'master'@{上游}
>[14]$git diff--无ext diff--无textconv--原始“头”--
>>>[15]$git ls文件--其他--不包括标准文件
[17] $git rev parse--验证“源/主”

你没有分支主管。您必须创建它。你可以这样做

git commit --allow-empty -m "initial commit"
git push -u origin master

这是一个git问题,而不是phabricator问题。

如果按照上面的说明使用
--trace
运行会发生什么?我已经为'--trace'添加了日志。这并没有解决我的问题。另外,请注意-这会导致直接提交给master,而在企业组织中,这不是您希望执行的操作,即使此提交不起任何作用。@SriK是的,我希望这显然是提交给master。