I did a git push --force
thinking it would only push the current branch but it did all branches. The real damage was done to only a couple of my colleague's branches that I haven't pulled for a long time so, by doing this (which was enabled by --force
), I completely reset all the commits on the remote that have been made since I last pulled.
Without going to my colleagues to ask them to push their up-to-date local branches to GitHub
to undo the damage I did, is there anything I can do to undo it? What I did was unfortunately equivalent to git reset --hard
, meaning I nuked all the commits since. Is there a way I can undo that?