Git Reset

Git command used to revert to a previous state of commits.

  • git log
    • list past commits
  • git reset --hard [commit-id]
    • Reset the version to the version specified by the commit-id

Previous Note 2023-11-19 Next Note 2023-11-20