I have committed a piece of code as commit1
but after finishing it, I want to remove the commit1
and commit the entire code as Initial Commit
.
When I run git reset HEAD~
in Git Bash, it results in deleting all my code.
Is it possible to delete commit1
instead of everything, and how?