Git Reset To Initial Commit
Git Reset To Initial Commit . Move the repository back to that step: The basic syntax for git reset is as follows: Git Reset Hard Guide to Git Reset Hard with Working & Examples from www.educba.com First commit //undo the second commit, now head is at first or previous commit. 2) git status / git log (to confirm you have reverted) 3) git push. If you need to retain the exact date of a git commit, then merge is the better option.