'How can I undo git push -f origin master

enter image description here

I ran git push -f origin master command, how do I revert to initial state?



Solution 1:[1]

Hi Fatih Y?lmaz have you tried this https://dev.to/isabelcmdcosta/how-to-undo-the-last-commit--31mg i had the same issue trying the revert it doing this

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dirk Robbertse