我有以下信息:
fatal: Not possible to fast-forward, aborting.
当尝试做GIT PULL时
我做了GIT REBASE,它的工作是拉远程提交到分支,但头仍然没有指向分支!?
我想先把承诺合并到分支机构。(生产服务器)

发布于 2022-04-19 09:58:41
我可以做以下事情来解决我的案子:
$git checkout –b temp #makes a new branch from current detached HEAD
$git branch –f master temp #update master to point to the new <temp> branch
$git branch –d temp #delete the <temp> branch
$git push origin master #push the re-established history这两个分支现在都与HEAD合并了。
https://stackoverflow.com/questions/71873549
复制相似问题