News for hackers. Stuff that matters.
Re:Git is too hard by jobigoud on Wednesday November 18, 2020 @04:20AM (#25134742)
> stuff like removing one change from staging

I click on the file and click on "unstage". I don't know why people insist on using the command line for their dvcs. Is it even possible to selectively unstage or reset only a part of a file without a GUI?

Re:Git is too hard by ajuc on Wednesday November 18, 2020 @11:52AM (#25139066)
> I don't know why people insist on using the command line for their dvcs.

I use both. More complicated stuff I usually do from the command line because I do them rarely enough, and I change IDEs often enough - that I just don't know how to do them in IDEs.

I used git regularly for last 6 years and in that time I've been using eclipse, netbeans, kdevelop, qtcreator, visual studio and intelliJ. And a few fringe IDEs as one-offs. I would have to remember 7 different paths in nested context menus for everything. I believe it's not "unstage" but "rollback" in IntelliJ, but I would have to check that in documentation before I do it anyway.

> Is it even possible to selectively unstage or reset only a part of a file without a GUI?

Sure - it's even faster than in gui, because you do it with keyboard only. I just can't remember the exact options.

Re:Git is too hard by jobigoud on Thursday November 19, 2020 @07:03AM (#25148668)
You don't have to learn 7 IDEs, I've never used git commands in my IDEs. Just use one git client.

And you don't have to remember the menus because they are contextual. Select a portion of text: unstage selected lines, reset selected lines, etc. Select a commit: checkout, create tag, revert, etc.

Things that are complicated on the CLI become routine and that changes the way you work.