Git: “Cannot 'squash' without a previous commit” error while rebase

前端 未结 7 582
逝去的感伤
逝去的感伤 2021-01-29 21:06

I have the following in the to-do text of git rebase -i HEAD~2:

pick 56bcce7 Closes #2774
pick e43ceba Lint.py: Replace deprecated link

# Rebase 68         


        
相关标签:
7条回答
  • 2021-01-29 22:03

    It will be best to just say in the interactive editor containing the commits, git always squash from bottom to top and one should leave a "pick" entry at the top to receive the squashes from below.

    0 讨论(0)
提交回复
热议问题