Re:Show HN: Gut – An easy-to-use CLI for Git
by stronglikedan on Thursday March 30, 2023 @09:38AM
(#35372507)
In my case, a lot of the complexity of Git is in the edge cases. Like, I rarely if ever have to revert, but when I do, it's very stressful to remember everything to get it right. This will certainly eliminate that occasional, but monumental, stress.
[ Parent
| on HN ]
Re:Show HN: Gut – An easy-to-use CLI for Git
by jonfw on Thursday March 30, 2023 @09:52AM
(#35372712)
The revert command is a good, easy solution- "git revert <commit-hash"
run "git log" to grab the commit hash
The really challenging parts of git IMO are around maintaining branches. Merge vs rebase, squash or no squash, when to back-merge, etc.
Re:Show HN: Gut – An easy-to-use CLI for Git
by zikduruqe on Thursday March 30, 2023 @10:20AM
(#35373090)
That's what tig is for.
Re:Show HN: Gut – An easy-to-use CLI for Git
by dahart on Thursday March 30, 2023 @10:21AM
(#35373104)
Revert is normally extremely safe, I’m curious why it’s ‘monumentally’ stressful?
The best thing to learn about git is what the safety nets are, what commands do destructive edits, vs what commands do things you can undo. Once you know how to recover from all the non-destructive commands, you never have to stress about them again!
The reflog is weird and confusing at first, but once you know it’s here and a little about how to use it, all of a sudden you realize it’s pretty hard to lose things, as long as you commit them.