2 ms·
One great use-case for git patches is moving files between repos without losing their history. I've done this many times, e.g. solving a problem in an applicati
by chriswarbo 6y ago
One great use-case for git patches is moving files between repos without losing their history. I've done this many times, e.g. solving a problem in an application, then later wanting to move that code into a library so it can be used elsewhere.
I do this so infrequently that I never remember the commands, but frequently enough that I remember which StackOverflow answer to Google for: https://stackoverflow.com/a/11426261/884682 https://stackoverflow.com/a/11426261/884682