549 points · by sant0sk1 · 14y ago · 236 comments
I got flamed a month ago [1] for noting how difficult it is to get up and running on GitHub in the Windows world, where things like generating SSH keys aren't exactly part of the daily routine. Glad to hear that they were listening.
The ssh setup is a barrier to entry for a great deal of Windows users, simply because they don't have to deal with such things on a daily basis. Whether they all should know these things is debatable.
I personally couldn't give shit how 'it' works, as long as I don't have to waste my precious time having to learn something I don't need to. I don't want to have to learn machine code for the same reason. We abstract to become more productive. We build on the shoulders of giants. We don't re-invent the wheel. I could go on...
The bottom line is that the previous installation for Windows was manageable, but still it was a drag. Luckily there were enough good resources on the web to help you through it. However, it was time consuming and that barrier has now been removed.
In my opinion that's great. It follows Dieter Rams' principles of good design, namely:
Good design is as little design as possible. Less, but better – because it concentrates on the essential aspects, and the products are not burdened with non-essentials.
http://www.vitsoe.com/en/gb/about/dieterrams/gooddesign
Let's remember that Git is a distributed source control mechanism. It needs to move versioned code around. That is its pure purpose. When the security setup takes more effort than the source control you're doing it wrong.
That being said, the common language of the Git world will remain the command line. The vast majority of examples you will find on the web when you are learning how to use Git will be executed via the command line. That fact in itself means that you should still learn the basic commands and get familiar with git bash.
EDIT: I hope this gives a fairly balanced opinion from a typical Windows Git user. I appreciate that this topic is a heated one.
By all means switch to using the GUI after.
The method I chose in Windows was to use pageant (part of Putty) to load the keys. Not sure if I missed this option but you can't autoload keys so when you restart pageant you have to readd the keys (which is not terrible bad, just annoying).
Haven't tried Github For Windows yet but if it fixes the hassle of using ssh keys then I'll probably use it as my main git client for Windows.
http://jameschens.com/blog/2010/05/24/starting-pageant-durin...
Then, by all means, use Cygwin or anything that helps you, even if it doesn't come with Windows, if it isn't provided by Microsoft, doesn't look familiar and if it doesn't play well with Visual Studio. If you code for Windows you are coding against an insanely complicated set of APIs.
This seems pretty friendly to me. Is there something I'm missing?
For my team, which consists of designers and developers, this will make the learning curve of my designers a lot easier.
Saying that because you don't know how to use SSH keys on a windows machine means you can't write secure code is just silly. It is a slippery slope to say that. If the majority of senior guys actually believed it then we wouldn't have a use for higher level languages (ruby, php, etc), frameworks like .net, etc.
GitHub doesn't take any more setup than a standard Git setup takes (well, outside of signing up, a very short process anyhow). Install the Git client via the Windows installer, (point and click, a minute, tops). Generate an SSH key. Upload the id_rsa.pub. Done. I mean, it would be one thing if they left users in the dark about this, but I'm fairly sure that the "Thanks for signing up page" links directly to the OS-specific meticulous step-by-step instructions of generating the key.
I'm not sure you understand what it means to be flamed. Every one of the comments is specific about your misconceptions and why signing up for a GitHub account is as trivially easy as signing up for a Twitter account. (Using GitHub as an oAuth account does not require actually uploading a public key)
None of us want to understand every single domain of knowledge from set theory or quantum physics up to cosmology or social psychology.
I personally have been forced to learn more low-level Unixy things than I ever wanted to. I want to write simple and elegant front and back end code quickly so I can spend my spare time honing UX and other human-facing aspects of my work.
I resent being flamed because I don't fully understand the subtleties of zsh or nginx or or whatever other shiny toy someone else happens to find essential knowledge. Your world might not necessarily be mine.
Speak for yourself. All of those are fascinating.
What do you people want? Seriously? Yes, I'd love to have a big red easy button. It could autoconfigure MySQL, and write init scripts, configure deploy environments because apache conf files are too complicated to learn. Hell, it could even write my backend code and then commit it for me too!
I'm done with this ludicrous conversation. I've never seen such an ignorant-excusing entitled discussion in a "technical" community before. Downvote me because you can't follow steps or can't be bothered to learn how to use one of your most important development tools, I've lost interest.
Using git on Windows has historically not been super fun. The CLI installer mostly works, but it's pretty clunky. Cygwin works fine too, but it's also not especially elegant. At the very least, known of these solutions conform to the expectations of people of the platform. The GUI clients on Windows last I looked (a year ago) were pretty terrible, especially compared to TortoiseSVN, which isn't bad. OS X, on the other hand, had several very nice GUI clients even before the official Github client came out.
There is TortoiseGit, which is basically TortoiseSVN over git. It looks much the same.
You can regard it as a good place to start with git, or as something that stops you learning what makes git special.
As for "CLI installer" (I presume you mean the installer for the CLI git client), and Cygwin, I'm not sure what to say. I've used the Git installer dozens of times without problem, there aren't exactly tons of places for it to go wrong. Are there specific or particular issues you have with it?
I do indeed forget that some programmers manage to make it far resisting learning to use the command line. Even with step-by-step instructions. I guess at some people I'm willing to fault the developer rather than tools that are powerful that come with good documentation.
Is this an honest question, or are you alluding to the idea that someone who doesn't understand PKI should not use distributed source control?
Last I checked they[GitHub] made you perform a bunch of scary crypto stuff on your local machine before they'd let you in.
If performing `ssh-keygen` and entering in an (optional) password from a command line constitutes "scary crypto", then maybe Git and GitHub isn't for everyone. Not that anyone needs to know how PKI works, but they might be better off knowing that `ssh-keygen` generates an ssh key pair, a pretty essential component of the `git` workflow.
Maybe that's why SVN is so strong in older development shops. Outside of the effort required to convert an SVN repo to a Git repo, all those developers already have all the tools necessary on their machines (Windows is high on that list) and in many cases inside a VPN like my division we just use WebDAV anyways, completely bypassing the need for SSH Keys in favor of ActiveDirectory.
I find this shows the necessary respect when dealing with security related tasks, since they are HARD.
I'm not talking about developing crypto related software, but just setting up a "safe" environment where you can store your SSH Keys in a way that doesn't defeat the purpose of using them in the first place is non-trivial, even for people with degrees.
IT Security is a complex field of its own and if a user is afraid of making the wrong choice it only shows that he understands the basics of it.
"ssh-keygen -t rsa", set a passcode on it, upload the id_rsa.pub and you're done.
Demonstrating a lack of understanding of that was worrisome for myself and other users that commented on his post a few weeks ago.
SSH is one of the easiest security tools to use safely that has ever existed. I would say it is second in usability only to HTTPS in browsers, while having a much better actual security record, and is infinitely more powerful, while keeping basic operation so simple I once taught my mother to use it.
I am 100% confident that anyone competently engaged in development or systems administration can understand the basic concepts and operations of SSH in five minutes. Any fear of it is irrational. It is not hard, it was specifically designed not to be hard.
I'm equally confident you've not taken the five minutes to understand these relevant concepts, because your statement about setting up a "safe" environment makes no sense in the context of OpenSSH. The defaults are inherently safe, as they should be. You must take specific actions to make the system unsafe.
One downside, not entirely obvious how one's supposed to clone a repo with this?
Edit: They've mentioned the toolkits used at the bottom of the page. Apparently this is written in C#.
Edit for spelling
> Apparently this is written in C#.
You sound surprised. To me it looks like a quite slick WPF app, which aims for a metro-ish look. But I've seen nothing in the UI that is particularly challenging for WPF. WPF is very, very flexible.
I assumed that doing any sort of integration with Git would require C-level bridging. Didn't realize there was any sort of decent C# bindings for Git.
Also, I have not seen very many Windows apps with slick UIs like this that were written in C#. Even the WPF ones that I've seen were quite clunky.
Short of re-writing git in c#, it does require bridging. That's what unsafe code is for - calling out to dlls written in c.
> Didn't realise there was any sort of decent C# bindings for Git.
I kind of just assumed that there was. There usually is. The licences page lists "libgit2", so it's probably this one: https://github.com/libgit2/libgit2sharp#readme (edit yep, LibGit2Sharp is mentioned later on in the licences)
The file LibGit2Sharp/Core/NativeMethods.cs seems to do a lot of the bindings.
> the WPF ones that I've seen were quite clunky
I said that WPF was flexible, I didn't say simple or easy :P Also, to get good design, you usually need the help of a designer. Most coders will produce "clunky" UIs. I would. Somehow, the Windows desktop space has been very slow to deal with this.
I don't claim to be a design guru, but it looks like somebody was going for minimalism, but used a nuke instead of a scalpel. My eyes don't know what to focus on, there's limited indication of what things are, and in places it's hard to tell at a glance where one component ends and the next begins.
It's not so much ugly as it is intensely vague and somewhat undiscoverable.
Edit: Just to be clear, I don't want this to be seen as a criticism of this app or its developers specifically, I'm operating under the impression I'm getting from other commenters that this is very Windows 8-ish in general, so take this as bewilderment at the Windows 8 style.
http://www.theverge.com/2012/5/18/3029547/microsoft-windows-...
When I browse to my downloads folder, the most frustrating thing in the world is trying to figure out where 'setup.exe' came from.
I expect this will drive up the adoption of GitHub by a measurable amount.
I've been doing a lot of Windows development lately and I've missed a good git tool. I'm very happy about this.
One single powerful window instead of explorer right-click menus, feels more productive for me. Great support for PuTTY (needs some tricks with KiTTY) but also works with openssh.
I think it is better for TortoiseGit to match the semantics of git rather than match the semantics of TortoiseSVN. It causes some confusion coming from SVN for sure, but once you start using git, you should learn its dialect. It would be worse if TortoiseGit did not match git's vocabulary.
One thing that is great about github.com and other websites is that it feels the same across multiple environments. Furthermore web browsers try to emulate their own style not that of the host operating system. If I use chrome or firefox in mac or windows they feel basically the same.
I wonder if more applications will go in the direction of trying to match the feel of the host operating system over the feel of there application as a whole.
From that perspective, I think they're doing the right thing.
It's nice to know GitHub made the effort.
Actually there are pros and cons to adapting an application to the platform instead of adapting the platform to the application. You're also conflating the OS with the window manager.
but since this is using your framework, xpaulbettsx, is the source for this going to be available? I always love seeing open source functional applications that use a certain framework or toolkit I'm considering. Makes the divide between reading code/documentation and the end product just seem that whole much closer.
Just the fact that it doesn't have keyboard shortcuts is a dealbreaker.
I'm glad Github decided on a core feature set, and made those very easy to access.
Like the Mac app, GitHub for Win doesn't support every single git feature but it makes the ones it does support intuitive and accessible. Props.
It's a first iteration / release. I'm sure with more feedback they'll release more often. I'm unlikely to use this much - because I favour the cli - but I really hope this makes git more accesible to some Windows shops.
Will this tool be able to work with non-github git repositories?
"GitHub for Windows is a 100% native application"
"The application is written in C#"
Is managed code the new native?CefSharp (.NET Bindings): https://github.com/ataranto/CefSharp
I use ClickOnce for several of my applications, and I'd say the users who dislike it the most have the highest technical aptitude (which, I'd guess, is a large part of GitHub's user base).
Unfortunately, there doesn't seem to be an obvious way to mass update ClickOnce applications apt-get style.
I think maybe ClickOnce's drawbacks are less of a sticking point when the application you're installing is one that needs Internet connectivity to be fully functional anyway.
- Why can't I find the installation directory? (ClickOnce doesn't use the standard C:/Program Files/ location, it stores program files in C:/Users/<your username>/AppData/Local/Apps/2.0 for security reasons.)
- Why does the installer need a network connection? (ClickOnce downloads the required setup files from the internet.)
The lack of a standard Program Files/.exe deployment also makes it difficult to map filetype associations, which is also a frequent complaint.
I'll likely be going with non-ClickOnce deployments for the future. ClickOnce is great for deploying production software at work, but for a consumer audience, it isn't quite perfect.
(Personally, I really like ClickOnce.)
Considering that Paul has been working on it and yet choose to go with ClickOnce, I am guessing it's not ready for prime time but it might be worth looking into anyway.
Granted, this 60/40 blame security software/clickonce, but it was a complaint nonetheless.
For someone that has one foot in both Worlds (UNIX & Windows) this is a welcome addition to my toolset.
14:32:19.309 (unrecognized proxy protocol) connection from 127.0.0.1:3743 failed: Unsupported client protocol; the client may be expecting a regular HTTP proxy.
Considering how MS are not really pushing a competitor, I don't understand why they refuse to add such a simple thing. RDP is a completely different tool, and anyway it's not really something you'd expose on the internet, so I don't understand why they can't just integrate OpenSSH -- it's not even GPL!
One problem that is rendering it unusable for me atm though is that it tells me that files contain changes that have not been touched and if I try to discard those changes it actually has no effect. Wanted to report it but found no way to do so on the GitHub for Windows page.
I already had msys installed, so I'm concerned that GitHub may have tried to install it again, causing conflicts.
C:\Users\<username>\AppData\Local\Apps\2.0\51DBXE19.R1Z\RGNBRRL3.Q0Q\gith..tion_8f45a2159c87c850_0001.0000_c87fd0df5204df40\github.exeHow many people were on the team? Did you let Phil write any Xaml?
Would it have been that hard to just use Qt and build a cross platform tool? Or is that not hipster-friendly enough?
I guess it's cool to profit, not that cool to give back. I wouldn't use their tool anyway but I think they're assholes on this one.