Skip to content

Instantly share code, notes, and snippets.

@laozhu
Last active August 23, 2017 11:32
Show Gist options
  • Save laozhu/7135592 to your computer and use it in GitHub Desktop.
Save laozhu/7135592 to your computer and use it in GitHub Desktop.
Git如何回滚本地和远程的代码库
git log
git reset --hard <commit-id>
git push <remote-repo> HEAD --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment