|
|
|
|
|
by oakashes
319 days ago
|
|
Something I ran into during exercise 2 (and from watching the solution video[0] closely I see the author did as well): There were four consecutive changed lines in my original commit. When I split it, I selected the deletion and addition for the first two lines. In the resulting newly created commit, those two lines had been moved to below the other two lines, so the order was now 3 -> 4 -> 1 -> 2, with the second commit moving 3 and 4 back to their original places. I didn't figure out a clean way to fix this - when I edited the commit which changed lines 1 and 2 to put them back at the top, it made a conflict with the second commit which I had to repair. Anybody know what I should have done differently to split the commit and keep the edited lines in their original places? [0]: https://www.loom.com/share/e3e148f07fb9420180ebb047f5ca94b3 |
|