Git, Productivity, Web Development, Software, Self Improvement.
repository with dummy commits. Like this: ➜ git log * 5c742b2 (HEAD -> main) Commit E * d569890 Commit D * 7a42f58 Commit C * fb7cf42 Commit B * f251a31 Commit A * 5f7cfbc Initial Commit To delete commit C, D and E, we can use: ➜ git reset --hard HEAD~3 Or we can reset directly to the target commit