foo@foo-:~/repo$ git rebase master -i error: invalid line 2: squsah xxx asd You can fix this with 'git rebase --edit-todo' and then run 'git rebase --continue'. Or you can abort the rebase with 'git rebase --abort'. foo@foo-:~/repo$ git rebase master -i fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase. If that is the case, please try git rebase (--continue | --abort | --skip) If that is not the case, please rm -fr ".git/rebase-merge" and run me again. I am stopping in case you still have something valuable there. foo@foo-:~/repo$ foo@foo-:~/repo$ git rebase -edit-todo error: did you mean `--edit-todo` (with two dashes)? foo@foo-:~/repo$ foo@foo-:~/repo$ git rebase --edit-todo error: invalid line 2: squsah xxx asd foo@foo-:~/repo$ git rebase --continue [detached HEAD xxx] update npm packages, add package-lock Date: Thu Aug 18 09:52:58 2022 +0300 3 files changed, 2059 insertions(+), 2 deletions(-) create mode 100644 package-lock.json