Can I delete a git commit but keep the changes?
It’s as simple as this: Note: some shells treat ^ as a special character (for example some Windows shells or ZSH with globbing enabled), so you may have to quote “HEAD^” or use HEAD~1 in those cases. git reset without a –hard or –soft moves your HEAD to point to the specified commit, without changing any files. HEAD^ refers to the (first) parent commit of your current commit, which in your … Read more