How do I undo a force push without losing a teammate's commits?
Someone force pushed main and now three of our commits are gone from the remote. I still have a local clone from yesterday that shows them in git reflog. What is the safest sequence to restore the remote without overwriting whatever was pushed after the force push?
4 replies