4 ms·
github just removed git: urls from their web ui so it no longer tells you how to make a clone you can push from using standard git it's been replaced with inst
by kragen 4y ago
github just removed git: urls from their web ui so it no longer tells you how to make a clone you can push from using standard git
it's been replaced with instructions for using their own gh cli tool (which, however, is also free software)
for example on any github project page, https://github.com/username/projectname https://github.com/username/projectname, click on the "code ↓" button in the top right; the "local" tab on the left has a "clone" tab with 'https' and 'github cli' subtabs. the git@github.com: url you can use with standard git has been removed
i think this is a change within the last month
embrace, extend, and extinguish is alive and well
- Scaevolus 4y agoYou have to be logged into github for the SSH clone tab to appear-- if they don't know your pubkey you can't connect using the SSH protocol. Git can push over HTTPS, too.
- kragen 4y agoaha, that wasn't previously the case, thanks for the correction whether i'm logged in in my browser has nothing to do with whether my ssh client has access to an authorized private key
- zdragnar 4y agoGiven the number of users who are novices to both git and ssh and all the rest, and also given that the UI doesn't really have room for "teaching" (it's already a popup, so adding another popup would be pretty ugly), I think it is a fairly reasonable change. Clearly, more people were confused by the original than outraged about the current implementation... I don't even recall the change being made.
- zerocrates 4y agoThe heuristic for Github though is that the vast majority of people visiting a repository page who aren't logged in to Github on that browser don't have an authorized private key. It makes complete sense to present only options for anonymous checkouts to anonymous users. Long ago they used to push SSH as the "right" way to pull repositories (I still almost exclusively use SSH), but their change to recommending HTTPS instead by default is by now quite old: it's been the case for many years. Other related things have changed more recently: Github doesn't allow git:// urls anymore (but HTTPS still allows anonymous checkouts), and when doing authenticated HTTPS, you now need to provide a token instead of your password. The git:// protocol, to my recollection, doesn't support authentication at all. If you've ever been able to push to git:// URLs on Github, it's news to me.
- kragen 4y agoi wasn't talking about git:// urls and i think that removing them was probably a good idea, for the reasons you describe, but also because they didn't have any way to stymie mitm attacks but it seems like my original comment was incorrect in a couple of different important ways, and i appreciate people having pointed that out
- robinsonb5 4y agoThis may have something to do with one of my other pet hates - projects with submodules using git:// urls. If you don't use SSH keys for github you can't do a "git submodule update --init" without first changing the submodule urls in .git/config to https:// https:// style.
- Denvercoder9 4y agoFYI if you don't want to manually convert to a SSH URL, you can use a insteadOf setting in your gitconfig to make git do it automatically: https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf https://git-scm.com/docs/git-config#Documentation/git-config...
- legobmw99 4y agoIt seems that this has been the case for years, at least going from the (obviously logged-out) archive.org saves of the Linux repo: https://web.archive.org/web/20180115003453/https://github.com/torvalds/linux https://web.archive.org/web/20180115003453/https://github.co...
- kragen 4y agoi appreciate the additional correction; perhaps i was looking at github mostly while logged in previously
- Kab1r 4y agoI don't think this is true
- kragen 4y agosee correction in other subthread
- peoplefromibiza 4y ago> embrace, extend, and extinguish is alive and well ??? you can clone Github projects and move them on every other git repository you want if Github removed the support for git, Github would be dead in a week. Not only because git is literally in their name, but because every programmer tool that deals with code (editors, IDEs, etc.) has embedded support for git, the protocol, not git the Github version of the protocol. Remove interoperability and you killed the golden goose. At MS are not that stupid.
- kragen 4y agoif www browsers had removed support for ftp, browsers would have been dead in a week, in 01998 but because they waited until last year, removing that interoperability did not significantly affect their dominance as a way of accessing the internet
- peoplefromibiza 4y ago> but because they waited until last year FTP died long ago as a protocol, it wasn't killed by some corporations trying to embrace and extend, but by better protocols (SFTP, SCP, HTTP(S) etc.) also FTP created a lot of issues behind NAT
- kragen 4y agothere are still ftp servers and there is still a substantial information that is only accessible through ftp, however lame the protocol design is wrt nat i would say that nat created a lot of issues with ftp
- peoplefromibiza 4y ago> wrt nat i would say that nat created a lot of issues with ftp let me rephrase it. FTP behind NAT had a lot of issues. But the protocol was never designed to be accessed by a WEB browser, that were limited to read only access. The best way to access FTP is through an FTP client. I don't necessarily agree with the new wave of browser security at all costs, like HTTPS everywhere, but FTP clients are far from being hard to find. > there is still a substantial information that is only accessible through ftp can you point me to an example? I haven't encountered that problem since the end of the 90s. The only instance I can recall is upgrading the firmware of home routers/modems using TFTP.