4 ms·
Reading the post title, I think my brain hit a segfault. I sometimes want to undo an hour of work. Git to the rescue. I sometimes want to compare code now to
by sethammons 7y ago
Reading the post title, I think my brain hit a segfault.
I sometimes want to undo an hour of work. Git to the rescue.
I sometimes want to compare code now to code then. Git the the rescue.
Sometimes, I have to undo days of work. Git to the rescue.
Sometimes a really good git commit will help me understand why something changed (though, I contend this should be documented in the code with comments). Links to tickets, other files that were changed at the same time, etc. Git to the rescue.
I _want_ code reviews. It is how we learn from each other and get better. Git to the rescue.
I run automated tests against my code to make sure it works the way I want. Multiple layers. Especially at the black box layer (ie, does it do what the customer wants). Sometimes my new code breaks tests and I want to easily switch between the known stable version and my broken version as I fix my version. Git to the rescue.
Sometimes I want to share my code to help a colleague learn. Online source code viewer to the rescue! (cough, Github, cough). To leverage Github? Git to the rescue.