Git -i rebase: неизвестная команда: squash - PullRequest
2 голосов
/ 10 августа 2011

На данный момент мой git-rebase-todo:

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.
#

И вывод командной строки

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

Ответы [ 2 ]

2 голосов
/ 10 августа 2011

Не должно быть : после squash

0 голосов
/ 10 августа 2011

Вы не можете раздавить коммит в ничто. Вам нужно как минимум два коммита, где вы можете раздавить один в другой.

...