Re:I struggled with Git, so I'm making a game to spare other...
by fragmede on Sunday March 02, 2025 @08:50PM
(#43237460)
> can't easily be done with the command line.
[ Parent
| on HN ]
Re:I struggled with Git, so I'm making a game to spare other...
by suzzer99 on Sunday March 02, 2025 @10:16PM
(#43237943)
How does this scan a bunch of repos at once and let me see all the changes at a glance, and then drill down to individual files to either discard the changes (revert back to their committed state) or check them in?
All git add -p does is that last part from what I can tell. I'd still have to cd into each repo and run git status one by one (I've made changes to up to 10 repos before for one tweak), and then do a git add -p to the changes I do want, and a git stash to the changes I don't and then delete the stash.
Re:I struggled with Git, so I'm making a game to spare other...
by fragmede on Sunday March 02, 2025 @10:22PM
(#43237977)
If "cd" and "git status" in a bash for loop is too advanced, you might need a GUI. Though I'd also argue that you've got too many separate git repos if you're finding yourself needing to do that often. It all depends on where you are on the journey to Monorepoland.
Re:I struggled with Git, so I'm making a game to spare other...
by suzzer99 on Sunday March 02, 2025 @10:29PM
(#43238012)
We're too small to implement a monorepo, because no one has time to build the tools we'd need to do it right. I still don't see what I gain by cd-ing into all those directories and running git status and looking at a bunch of text results, when I can just glance at the SourceTree repo window and see all the repos I've touched.
Re:I struggled with Git, so I'm making a game to spare other...
by fragmede on Sunday March 02, 2025 @10:36PM
(#43238050)
I'm just saying it might be a skill issue rather than a tool issue.
Re:I struggled with Git, so I'm making a game to spare other...
by suzzer99 on Sunday March 02, 2025 @11:15PM
(#43238237)
You're not offering any benefit that I'd get from using the command line over my current process, except, apparently, being able to express your superiority over GUI users.
Re:I struggled with Git, so I'm making a game to spare other...
by nicoburns on Sunday March 02, 2025 @10:48PM
(#43238118)
I would argue that "git add -p" is the one thing which is unambiguously better with a GUI.
Scrolling through changes and staging lines is just much nicer with a mouse.
Re:I struggled with Git, so I'm making a game to spare other...
by robertlagrant on Monday March 03, 2025 @06:16AM
(#43240642)
I semi-agree - the real win is in unstaging changes you didn't mean to stage! Much easier in a GUI, because I don't have to remember the non-symmetric CLI command.
Re:I struggled with Git, so I'm making a game to spare other...
by metaltyphoon on Sunday March 02, 2025 @09:26PM
(#43237652)
Learning the -p was the biggest gain I’ve had after years of using git via cmdline only.
Re:I struggled with Git, so I'm making a game to spare other...
by suzzer99 on Sunday March 02, 2025 @10:22PM
(#43237976)
Which is kind of the point. If a GUI editor does this stuff for you, that seems like a win over incrementally learning these little command line tricks that save you a bunch of time.
Re:I struggled with Git, so I'm making a game to spare other...
by metaltyphoon on Monday March 03, 2025 @07:25AM
(#43241090)
That’s fine for some and I have no problems with it but my mind doesn’t work that way and instead it asked “how is possible the UI is doing this”. All of that lead to learning what hunks are and manually editing them to learn.
Re:I struggled with Git, so I'm making a game to spare other...
by greg5green on Sunday March 02, 2025 @11:27PM
(#43238298)
You can do it with stash too!