首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Git -i rebase :未知命令: squash

Git -i rebase :未知命令: squash
EN

Stack Overflow用户
提问于 2011-08-10 15:43:07
回答 2查看 1.5K关注 0票数 2

目前,我的git-rebase-todo是

代码语言:javascript
复制
squash: f732993 aaatest

# Rebase f3a7aa7..f732993 onto f3a7aa7
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#

和命令行输出

代码语言:javascript
复制
eugene@eugene-desktop:~/git$ git rebase --continue
Unknown command: fixup: f732993 aaatest
Please fix this in the file /home/eugene/git/.git/rebase-merge/git-rebase-todo.

为什么它不能识别南瓜,是不是我的git安装有问题?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-08-10 15:48:08

squash之后不应该有:

票数 2
EN

Stack Overflow用户

发布于 2011-08-10 16:00:09

您不能将提交压缩为空。你至少需要两次提交,这样你就可以把一个压缩到另一个中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7007406

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档