this post was submitted on 12 Dec 2023
807 points (99.0% liked)

Programmer Humor

19564 readers
1005 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 60 points 11 months ago* (last edited 11 months ago) (15 children)

Every time I commit I have to look through git diff, figure out what the hell I actually did, come up with something intelligent to say about jt, possibly split the commit into multiple commits if I changed multiple things, do some shuffling with git reset and git add...

For some reason all my personal projects are all like 4K SLoC with 50 total commits, all of which include apologies for not doing more smaller commits

[–] [email protected] 4 points 11 months ago (2 children)
[–] [email protected] 3 points 11 months ago* (last edited 11 months ago) (1 children)

Remind me what -p does.

Edit: never mind - I see it mentioned below.

[–] [email protected] 3 points 11 months ago

Patch add - it shows you particular changes you made, and you choose whether or not to include them in the commit. (You can then use git stash -k to stash only the changes you did not add, so you can test before you commit.)

load more comments (12 replies)