Re:Oh shit, git: Getting myself out of bad situations
by autarch on Monday December 18, 2017 @11:09AM
(#15952600)
Git does have a revert command.
Re:Oh shit, git: Getting myself out of bad situations
by lillesvin on Monday December 18, 2017 @01:34PM
(#15953993)
Yeah, my bad. Must've been "reverse" then. I just remember the revert/reverse dichotomy.
Re:Oh shit, git: Getting myself out of bad situations
by lttlrck on Monday December 18, 2017 @07:43PM
(#15956848)
Or perhaps it called revert but it wasn’t doing a git revert, it was doing a git checkout to simulate an SVN revert... I’ve seen this in at least one GUI.
That kind of crap just makes it harder to unwind problems when things go wrong and to learn the tool.
Re:Oh shit, git: Getting myself out of bad situations
by Alupis on Monday December 18, 2017 @11:21AM
(#15952710)
> no Git command called ... "revert"
Maybe not in the way Source Tree uses it, but there certainly is[1]! I've had to use it a few times.
> git-revert - Revert some existing commits
Re:Oh shit, git: Getting myself out of bad situations
by lillesvin on Monday December 18, 2017 @01:33PM
(#15953979)
My bad, then it was "reverse" in Source Tree (or whatever it was).
Re:Oh shit, git: Getting myself out of bad situations
by joonoro on Monday December 18, 2017 @11:13AM
(#15952627)
I like Magit because it doesn't try to hide git while still giving all the advantages GP mentioned https://magit.vc/
Re:Oh shit, git: Getting myself out of bad situations
by bootcampjs on Monday December 18, 2017 @11:10AM
(#15952605)
I work with a lot of people who have no idea how git actually works and it is infuriating. They all use the git desktop program, and almost every time I get called over to help, it’s because they didn’t sync or refresh or whatever the hell it does.
If you don’t have a good mental model for git, you’re gonna have a bad time.
In a CLI I know exactly what's happening.
That's just my opinion though. If people feel comfortable working in a GUI all the more power to them.