git rollback

 http://stackoverflow.com/questions/1616957/how-do-you-roll-back-reset-a-git-repository-to-a-particular-commit

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)

  • If you wish to commit that state, so remote repository also points to rolled back commit do: git push <reponame> -f (credited user)

posted @ 2013-12-23 14:15  Monn  阅读(1625)  评论(0编辑  收藏  举报