Yeah learned this the hard way.

  • elbiter@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 day ago

    I just commit and push in the same line, all the time. Whenever I have to undo a change, I go to GitHub/Gitlab browse for the previous version and paste from there.

    I definitely know is not the intended way to do this, but it works for me and has saved my ass several times.