• white jigsaw puzzle illustration

    Recover lost commits from git push –force

    Today I learned how to retrieve accidentally lost commits pushed to remote (via –force). I accidentally overwrote a co-worker’s committed changes and my own revisions on his branch using git push –force origin/branch! I freaked out at first realizing how grave the mistake I made. I panicked at first, like any child would panic after…