The remote warehouse is completely inconsistent with the local warehouse. I accidentally forced a submission. git push origin master -f
was completely overwritten. Can I still roll back now?
为情所困2017-07-01 09:14:05
After executing git reset
, the contents in the .git/objects folder are not deleted accordingly.
Run git reflog
to find the previous commit ID (commit_id)
Then git reset --hard commit_id