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

Programmer Humor

19503 readers
1151 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] 4 points 11 months ago* (last edited 11 months ago) (1 children)

Or just use a good IDE that makes doing atomic commits pretty natural.

[–] [email protected] 2 points 11 months ago (2 children)

I've only tried the VS code hunk stager thing, and found it cumbersome compared to command line, but if you can make a GUI work for you ya go for it. I've never found it worth the trouble personally

[–] dukk 3 points 11 months ago (1 children)

Shout out to Lazygit for letting me stage individual lines

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

Looks pretty neat. I like that it shows the commands it's issuing!

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

You should try the JetBrains IDEs, as the other said, you can pick changes line by line graphically, when you commit, when you do a diff with another branch or when you fix conflicts. It's much more convenient than commands and terminal text editors.