I commited a copy of "main.c" to my repository. I then deleted 5 whole functions to see what happens. I want 2 of those functions back. Can I do something like this:
$ git make-patch main.c --interactive > patch_to_add_back_functions.patch #interactively choose the functions I want. $ patch main.c patch_to_add_back_funcitons.patch Is there a way to accomplish that? Either via a patch generation or via whatever would be the most git way of thinking.