本文介绍了你如何获得丢失的“自动静止”从`git rebase --autostash`提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 git rebase --autostash 时,git会自动创建一个autostash提交,并在重新绑定成功后重新应用它。



但是如果rebasing被中止(例如在Vim中使用:cq ,当它是一个交互式rebase时),autostash-commit可能会结束作为一个悬而未决的提交。



Git 2.9.0

解决方案

Git 2.10(Q3 2016)应该完全避免这个问题。



请参阅(2016年6月29日)作者:。


When using git rebase --autostash, git automatically creates an "autostash" commit, and will re-apply it after a successful rebase.

But in case the rebasing is aborted (e.g. by using :cq in Vim when it's an interactive rebase), the autostash-commit might end up as a dangling commit.

Git 2.9.0

解决方案

Git 2.10 (Q3 2016) should avoid that issue entirely.

See commit 33ba9c6 (29 Jun 2016) by Patrick Steinhardt (pks-t).

这篇关于你如何获得丢失的“自动静止”从`git rebase --autostash`提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:50