git - rebase continue 提示报错但是 status 又没有任何可以提交的文件



描述一下场景,你在使用git rebase做rebase操作。然后发现没有可以提交的,git status给出的结果是:

rebase in progress; onto fc4bc639
You are currently rebasing branch 'abc' on 'fc4bc639'.
  (all conflicts fixed: run "git rebase --continue")

nothing to commit, working tree clean

接着当然就是继续运行git rebase --continue,但是又会报错:

Applying: Fix xxx issue
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.

Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".


git rebase --skip