3 ms·
That's only if you have ssh access to the server. I don't think there's a way of seeing the reflog of a remote? I.e. if you're using github and the branch only
by Anderkent 13y ago
That's only if you have ssh access to the server. I don't think there's a way of seeing the reflog of a remote? I.e. if you're using github and the branch only lives there, can you undo an overwrite?
- dilap 13y agoOh, interesting, I think you're right. That's a bit unfortunate actually!
- darklajid 13y agoI guess I am missing something. There is no 'server'. You should have the same reflog locally, if you pulled before someone messed the repository up?
- luchs 13y agoThe 'server' in this case is a remote repository which has some commits you don't have. If you force push to this repository, these commits will be lost for you - only the person who pushed these or someone with access to the server can restore them.
- eridius 13y agoIf you have the output from your `git push -f` you can, because it outputs both the old and new ref for each modified branch.