• by Hackbraten on 3/20/2023, 4:43:38 PM

    When I’ve switched between my desktop and my laptop, I sometimes realize that I want some unpushed work-in-progress that’s still on the other machine. Then I often do:

        ssh other-machine git -C path/to/repo format-patch --stdout main.. | git am
    
    Alternatively, if stuff is uncommitted and unstaged:

        ssh other-machine git -C path/to/repo diff | git apply