I'm trying to squash a few commits in a git repository.

> git rebase -i HEAD~3

Successfully rebased and updated refs/heads/staging.

A file opens titled git-rebase-todo :

pick a2f3467 Require statement incorrect
pick c41212e Require file in environment
pick 2743221 This should work

# Rebase c5f42f3..2743221 onto c5f42f3
# ..........

I tried changing the bottom two commits to squash from pick . I save the file, and I get the following error:

Unable to save ~/Documents/code/myapp/.git/rebase-emrge/git-rebase-todo

Edit
Report