How to Squash Multiple Commits Into One with Git Squash

i’ve tried everything to save and close the editor but nothing happens so far, CTRL+O,CTRL+X,CTRL+G, the only command that worked was CTRL+Z and it stopped the editor and once i tried $git -rebase --continue (due this was the recommended action) it said that it had a merge conflict with my first commit. So i need help