Home ›
Completely undo commits and history that should never have beenCompletely undo commits and history that should never have been
Submitted by Benjamin Melançon on October 1, 2010 - 4:33pm
This fix is being done from a remote repository, because stuff was pushed there that shouldn't have been. However, this repository is only supposed to be cloned and not pushed to (one way one time), so we can destructively set it back to the way it should be.
cd /srv/git/agaric/siteproj.git
git reset add42b74103a4c756d7d55c4abf3d5b0ff914b0c
where that is the last good commit.
And that's it.
File this under do not do this at home.
Searched words:
git destructive revert
Comments
Post new comment