git - 弧形土地 "Not possible to fast-forward, aborting."

标签 git phabricator arcanist

我正在尝试着陆我的 arc 补丁。我是最新的 origin/master,我的补丁已经过审核并被接受。在 phabricator 网站上说:Next Step arc land 'arcpatch-D37'。 但是如果我使用 arc patch D37 然后使用 arc land 我会遇到问题。

一 pull 就断了:

Switched back to branch ←[1marcpatch-D37←[m.

[2014-04-29 14:06:50] EXCEPTION: (CommandException) Command failed with error #1
28!
COMMAND
git pull --ff-only --no-stat

STDOUT
(empty)

STDERR
fatal: Not possible to fast-forward, aborting.
at [D:\arcanist\libphutil\src\future\exec\ExecFuture.php:398]

我先尝试 pull ,没有遇到任何问题/冲突。 不知道下一步该做什么/尝试什么。

最佳答案

试试这个:

  1. git stash(通过 git stash list 确保它是你唯一的存储)
  2. git checkout master(切换到您的master 分支)
  3. git branch -D arcpatch-D37(删除旧分支)
  4. git reset --hard origin/master(重置当前分支)
  5. git pull(更新master分支)
  6. arc patch D37(创建一个新分支)
  7. arc land(登陆吧!)

关于git - 弧形土地 "Not possible to fast-forward, aborting.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23364339/

相关文章:

git - 在 Github 中将 pull 请求 merge 到与默认分支不同的分支

git - 全局 gitignore - 如何排除单个特定文件夹

git - 如何使用git从master分支中 pull 出?

apache - Phabricator 重写规则配置问题

git - 如何设置具有审阅者滞后时间(又名堆叠差异)的 Arcanist 工作流程?

phabricator - 是否可以修改奥术师/差异模板?

git - CodeIgniter 和 GIT : What not to check-in?

git - 使用 arc diff 时如何更改默认分支?

git - Phabricator 钩子(Hook)和 Bitbucket

phabricator - 如何拒绝/删除/关闭相位调节器贴片