bookmark

How do you roll back (reset) a Git repository to a particular commit? - Stack Overflow


Description

git reset --hard <tag/branch/commit id>

Notes:

git reset without the --hard option resets the commit history, but not the files. With the --hard option the files in working tree are also reset. (credited user)

Preview

Tags

Users

  • @jil

Comments and Reviews