Last active
August 23, 2017 11:32
-
-
Save laozhu/7135592 to your computer and use it in GitHub Desktop.
Git如何回滚本地和远程的代码库
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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