Can I delete a git commit but keep the changes?
It’s as simple as this: git reset HEAD^ 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 … Read more