News for hackers. Stuff that matters.
Re:Github experiencing major service outages across all serv... by jtchang on Saturday December 22, 2012 @07:23PM (#4957974)
This is why I love git (and distributed version control systems in general). For the most part a short downtime isn't the end of the world. When it comes back up I'll push my changes and that'll be that.
Re:Github experiencing major service outages across all serv... by saurik on Sunday December 23, 2012 @01:13AM (#4958792)
While I actually agree with you, as I look at GitHub as "somewhat reasonable git hosting", that is not how many (if not even most) projects actually use the website, so it is an unfair analysis: people seriously often use (and even encourage others to use) GitHub as the only web presence for their project, using a Readme.md to build a landing page; meanwhile, for many people, GitHub is how they handle incoming bug reports and pull requests (as they believe, for right or for wrong, that it is easier to use GitHub to collaborate on these features than a more traditional mailing list).

You thereby can't just say "oh yeah, git is distributed, so I don't care if GitHub is offline"; it makes about as much sense as saying "I don't care that Gmail is offline, as email is distributed: I have all my messages locally in Outlook and can send mail through my ISP" while ignoring that other people now can't send you mail and you have lost access to your calendar entirely.

Re:Github experiencing major service outages across all serv... by aliukani on Monday December 24, 2012 @08:36AM (#4962791)
I spent the downtime trying to figure out how to use Jade without the documentation available -- the docs are in the readme.md on the Github repo. It was only later that I realized that the docs were also available through npm (https://npmjs.org/package/jade), but it was an interesting experience nonetheless.
Re:Github experiencing major service outages across all serv... by jbverschoor on Sunday December 23, 2012 @07:45AM (#4959350)
emm.. it IS exactly the point.

Webservers can become unavailable. Github has a great trackrecord, and because git is distributed, people can still commit their code locally.

If you would have an SVN workflow, you would either have to wait committing (which is costly), or commit multiple changes in one go.

Also the email example is exactly the same. It IS a good thing you can access stuff locally.

You basically tell that dropbox is useless.

Re:Github experiencing major service outages across all serv... by saurik on Sunday December 23, 2012 @08:49AM (#4959428)
You seem to have ignored what I said... this insistence that "people can still commit their code locally" is focussing on just one of the use cases for this website. To read jtchang's comment, it is as if that's the only service that GitHub provides.

In fact, "git hosting" is one of the least interesting services GitHub provides for the specific reason that, yes, git is so ludicrously decentralized: it seriously takes less time to push to your own git repository than it takes to log in to your GitHub account.

(Really, the only thing it makes simpler, with regards to actual git hosting, is managing user credentials for a centralized Subversion-like repository; however, if you actually think of git as a decentralized system you don't do that in the first place.)

I will thereby attempt to make this point even more clear by taking my example about Gmail (where you totally ignored the Calendar comment) and ratchet it even further: if all of Google went offline tomorrow, my ability to still send mail using Outlook is great, but it doesn't help me watch YouTube videos or, you know, search the web.

Likewise, when GitHub has an "outage across all services" that affects all kinds of things developers do that have nothing at all to do with "hosted git repository". To repeat one example: a lot of developers are crippled if they don't have access to an issue tracker to tell them what they need to work on next.

So, just because your workflow doesn't rely on anything GitHub provides, doesn't mean that isn't why most of the people who use GitHub aren't using it: GitHub is a popular set of services for project management that are all bundled together in a way that is easy for people to get started with, not just a git hosting company.

Re:Github experiencing major service outages across all serv... by drunkpotato on Saturday December 22, 2012 @09:47PM (#4958377)
Exactly. To expand on this point, I love the redundancy built into Git.

I had a clone of my personal fork of my department's github repository at home. I read this and thought "that's interesting, I wonder if I could still work on it from home if I want to." I saw with "git config -l" that I had my github repository and my university's github repository, but not my university's mirror of the repository. I did a "git add remote", logged in to my university's VPN, "git fetch", and was up and running with my latest changes from Friday.

If that didn't make any sense, well, the gist of it is that the outage wouldn't affect development work in the slightest, thanks to the fact that every repository is a) content addressable, so you have consistency between servers and b) self-contained, so you have a complete copy everywhere. Hit me up for more info if you're curious; I recently upgraded us from CVS to Git for this redundancy advantage, among others.

Re:Github experiencing major service outages across all serv... by callahad on Saturday December 22, 2012 @07:35PM (#4958009)
Exactly. I'm sitting here thinking "poor GitHub engineers" rather than "oh crap, how am I going to work?"

(Though I do wish GitHub Issues weren't as centralized...)

Re:Github experiencing major service outages across all serv... by rwg on Saturday December 22, 2012 @08:47PM (#4958234)
One of the neat things about repos in Fossil (the DVCS by drh of SQLite fame) is that they have a built-in wiki and issue tracker whose contents are version controlled along with everything else in a project's repo. The Fossil executable also has a built-in web server that presents a web interface for working with the repo, including the issue tracker and wiki.

In short, if you have a project's Fossil repo, you can work on everything locally, then push source, wiki, and issue tracker changes to a central repo at your leisure.

Re:Github experiencing major service outages across all serv... by chacha102 on Saturday December 22, 2012 @09:24PM (#4958336)
Just to note, Github Wiki is git repo, so it you want to backup the data, branch, etc, you can push pull and everything else with any Github Wiki.

Github issues aren't however.

Re:Github experiencing major service outages across all serv... by dchest on Sunday December 23, 2012 @11:28AM (#4959810)
But you can't view GitHub Wiki in browser without some preprocessing. In Fossil, I just do

    $ fossil ui
And view (and edit) a copy of the whole project website, including wiki, tickets, history, interface for diffs, etc. in my browser.
Re:Github experiencing major service outages across all serv... by moe on Saturday December 22, 2012 @09:21PM (#4958325)
The problem with fossil is that it's not git. However it would indeed be nice if someone built a distributed github on top of git.
Re:Github experiencing major service outages across all serv... by zem on Sunday December 23, 2012 @03:49AM (#4959004)
how does fossil do versioning of the issue tracker? i tried using a setup like that for a while, with ditz as the issue tracker. it turned out to be really inconvenient to have my issues versioned along with my code as part of the same repo - i want to navigate around in my code's history and branch layout with the issue tracker conceptually being an entirely separate repo that always points to HEAD unless i explicitly go scroll back in it.
Re:Github experiencing major service outages across all serv... by dchest on Sunday December 23, 2012 @11:26AM (#4959804)
Fossil doesn't track issues along with source code, unlike some scripts for bug tracking on top of git. While Fossil stores tickets in the same repository with source code, with the same basic format, tickets are separate entities and are not connected to the source code itself.

You can read more about it here: http://www.fossil-scm.org/index.html/doc/trunk/www/bugtheory...

Re:Github experiencing major service outages across all serv... by kmfrk on Saturday December 22, 2012 @07:49PM (#4958066)
Yup. I wanted to do some coding before heading off, but I guess that's off the table now.
Re:Github experiencing major service outages across all serv... by deoxxa on Saturday December 22, 2012 @08:42PM (#4958221)
What? That's the complete opposite of what OP was saying.

You don't need github to be online to work with your code or even your repositories so long as you haven't gone and thrown all your digital eggs in the same basket (i.e. as long as you have other remotes or at least local copies of your repositories).

Re:Github experiencing major service outages across all serv... by ephemeralgomi on Saturday December 22, 2012 @09:47PM (#4958379)
I think kmfrk is implying his place of employment doesn't use git.
Re:Github experiencing major service outages across all serv... by benatkin on Sunday December 23, 2012 @01:02AM (#4958777)
I don't think so, because it's GitHub that's down and I think kmfrk would have mentioned it if his other service was coincidentally down at the same time. I think what kmfrk meant is that he can't operate without GitHub's issues. It isn't ideal but it's understandable.
Re:Github experiencing major service outages across all serv... by kmfrk on Sunday December 23, 2012 @05:12AM (#4959131)
Exactly. I for one don't have a photographic memory of my issues.
Re:Github experiencing major service outages across all serv... by tkellogg on Saturday December 22, 2012 @09:07PM (#4958288)
> For the most part a short downtime isn't the end of the world

Unless the Mayans were off by one

Re:Github experiencing major service outages across all serv... by shoopy on Saturday December 22, 2012 @07:30PM (#4957994)
I can do the same thing with CVS?
Re:Github experiencing major service outages across all serv... by msbarnett on Saturday December 22, 2012 @07:31PM (#4958002)
You can't branch, commit, checkout previous versions, etc while the server is down.

He can.

Re:Github experiencing major service outages across all serv... by angersock on Saturday December 22, 2012 @08:50PM (#4958246)
You're kidding, right? Might as well say you can do the same thing with diff, rsync, and cron.

:|

Re:Github experiencing major service outages across all serv... by silverbax88 on Saturday December 22, 2012 @07:36PM (#4958014)
I would point out that both TFS and Mercurial do the same thing (as does ClearCase, but ClearCase is awwwful), but with much less memory consumption on the local PC. Not trying to add snark (I upvoted the above comment), just adding that it's not a GitHub feature.
Re:Github experiencing major service outages across all serv... by msbarnett on Saturday December 22, 2012 @07:39PM (#4958025)
> I would point out that both TFS and Mercurial do the same thing (as does ClearCase, but ClearCase is awwwful), but with much less memory consumption on the local PC. Not trying to add snark (I upvoted the above comment), just adding that it's not a GitHub feature.

Well, no, obviously it's a feature of Distributed Version Control Systems in general.

In fact, that's probably why OP wrote "This is why I love git (and distributed version control systems in general)" and didn't in any way claim it was a feature of GitHub?

And do you have some kind of reference for git being less memory-efficient (are you talking RAM-wise?) vs Mercurial or TFS? On its face its pretty hard to believe; git is pretty light-weight.

Re:Github experiencing major service outages across all serv... by silverbax88 on Saturday December 22, 2012 @08:01PM (#4958103)
Git for large projects is not lightweight, nor do they claim to be. In fact, that's the basis of their philosophy - that they store full versions of the files as opposed to just storing the changes because data storage is considered inexpensive. The only time Git uses pointers in when the files have not changed.

I'm certainly not slamming Git for working exactly the way it was intended.

Re:Github experiencing major service outages across all serv... by bencevans on Saturday December 22, 2012 @08:28PM (#4958187)
I think you may be thinking of a different VCS such as SVN as Git actually just stores the meta data (changes/deltas) and not full versions of the file in each commit.

As an example when you clone a repository, it downloaded it, then in goes through a process of 'Resolving Deltas'. This is it going through the history applying the changes/deltas to the files so that they are up to the most recent revision.

The only files that are added in full are binary files.

Some reading: http://git-scm.com/book/en/Git-Internals-Packfiles :)

Re:Github experiencing major service outages across all serv... by Cogito on Saturday December 22, 2012 @08:41PM (#4958217)
To be fair, it uses the full blob until you pack, which is not immediately and depends on your settings. Large repositories spend a significant amount of effort determining optimum window pack sizes etc to optimise the packing of their history.

So, git can be quite heavy on disk usage, until all the loose objects are packed.

Re:Github experiencing major service outages across all serv... by msbarnett on Saturday December 22, 2012 @08:07PM (#4958120)
Pro-tip: when you want people to understand a comment you're making about the disk-consumption patterns of one piece of software vs another rather than memory-consumption, consider actually referring to it as "disk-consumption". Git is quite lightweight, if we're actually talking about memory.

Also, maybe don't confuse git with GitHub, as your original comment did.

Re:Github experiencing major service outages across all serv... by jeltz on Saturday December 22, 2012 @07:47PM (#4958061)
Your comment looks just like snark to me since 1) the parent comment mentioned other distributed systems and 2) a random unreferenced jab at git for its allegedly bad memory consumption. I have no idea if it is true or not, but it is hardly relevant to the discussion.
Re:Github experiencing major service outages across all serv... by drivebyacct2 on Saturday December 22, 2012 @07:47PM (#4958059)
Last time I used TFS it would take 5, literally 5 minutes to time out for checkouts. The way TFS acts I don't even feel it's accurate to call it a DVCS.

The only SCM I like less than TFS is SourceDepot. The bane of my existence. It's sad when I can rant about it abstractly and my father can sympathize.

Re:Github experiencing major service outages across all serv... by wtracy on Saturday December 22, 2012 @08:49PM (#4958242)
Does TFS beat out ClearCase on the Worst SCM Hierarchy? I'm just curious; I had to use ClearCase a lot at a previous job, and hated it but I've never used TFS.
Re:Github experiencing major service outages across all serv... by drivebyacct2 on Saturday December 22, 2012 @09:00PM (#4958274)
I've yet to have the pleasure of using ClearCase.