Re:Oh shit, git: Getting myself out of bad situations
by ninkendo on Monday December 18, 2017 @11:52AM
(#15953013)
GitHub's GUI is the worst. It has a "sync" button.
As soon as I saw that button I knew I'd have trouble using it.. what will "sync" do? Push my branches? Pull tracking branches? Will merge commits get implicitly created? Or will it just fetch? From what servers? I didn't want to risk having my local master get pushed into production just because GH wants to make things easy for me, so I just quit it and went back to the CLI.
Re:Oh shit, git: Getting myself out of bad situations
by mchahn on Monday December 18, 2017 @01:39PM
(#15954045)
GitHub's Atom editor recently added git operations. I use Atom but haven't had the time to try the git wrapping. Has anyone else used it?
Re:Oh shit, git: Getting myself out of bad situations
by emodendroket on Monday December 18, 2017 @12:15PM
(#15953232)
It just pushes the current branch afaik.
Re:Oh shit, git: Getting myself out of bad situations
by dotancohen on Monday December 18, 2017 @03:16PM
(#15955064)
So they should just call it 'push'. The word 'sync' is not in the Git terminology.
Re:Oh shit, git: Getting myself out of bad situations
by aalleavitch on Tuesday December 19, 2017 @02:10AM
(#15958352)
In its defense, git terminology is stupid. It took me way too long to reason out what the fuck a pull request meant. To your starting developer it seems to indicate the opposite of what it does.
Re:Oh shit, git: Getting myself out of bad situations
by emodendroket on Monday December 18, 2017 @08:03PM
(#15956954)
The GitHub desktop client is very limited and seems mostly geared toward a lone developer or small team who has never used git before. In this context I think it's a reasonable decision to use a more common verb.
Re:Oh shit, git: Getting myself out of bad situations
by craftyguy on Monday December 18, 2017 @10:49PM
(#15957590)
Nope. That does no one any good. Using git verbage would, at the very least, acclimate them to very common terminology used by the rest of the folks they will eventually encounter.
Re:Oh shit, git: Getting myself out of bad situations
by emodendroket on Tuesday December 19, 2017 @06:35AM
(#15959422)
Well, I disagree, because the alternative for many is probably no source control.
Re:Oh shit, git: Getting myself out of bad situations
by craftyguy on Tuesday December 19, 2017 @11:30PM
(#15967061)
Folks writing production crap would opt for no source control? Well, fair enough I guess. But I (and probably most competent sw engineering folks) would never hire someone who was completely oblivious to using source control. So hopefully that 'practice' would die through attrition.
Re:Oh shit, git: Getting myself out of bad situations
by emodendroket on Wednesday December 20, 2017 @11:11AM
(#15970795)
You've got to meet people where they are. Someone who is familiar with how git works is going to find the git GUI client way too limiting to seriously consider using it, whatever verb they use for the push function.
Re:Oh shit, git: Getting myself out of bad situations
by michaelmior on Monday December 18, 2017 @12:23PM
(#15953314)
So it never pulls updates on the remote? That seems like pretty unexpected behaviour.
Re:Oh shit, git: Getting myself out of bad situations
by emodendroket on Monday December 18, 2017 @12:35PM
(#15953431)
It pulls and then pushes, I guess I should say, but I was considering "pulls and..." part of the push operation.
Re:Oh shit, git: Getting myself out of bad situations
by pacoverdi on Monday December 18, 2017 @11:58AM
(#15953058)
CLI and GUI are both user interfaces and magic is in the eye of the beholder: if you know your tools, you can predict what will happen under the hood when you click on a button as much as when you submit a command (it's not magic anymore).
Personally, I use the CLI and often have no idea what I'm doing ;)
Re:Oh shit, git: Getting myself out of bad situations
by giancarlostoro on Monday December 18, 2017 @01:41PM
(#15954066)
Even GUI based SQL tools show you a log of commands used... Git GUI clients don't even show you beforehand or after what the heck just happened... Sad.
Re:Oh shit, git: Getting myself out of bad situations
by tigershark on Monday December 18, 2017 @02:43PM
(#15954762)
It's definitely not true.
I'm not sure what kind of gui did you use but both sourcetree and gitextensions show you the command log.
Re:Oh shit, git: Getting myself out of bad situations
by giancarlostoro on Wednesday December 20, 2017 @12:33AM
(#15967268)
Guess I was wrong, but I never noticed said log. I use SourceTree.
This. A thousand times over. I like to see exactly what git is doing and when; I don't want any magic stuff under the covers done for me.