For what it's worth, protected branches are pretty clearly listed as a "Github Pro" feature in their pricing page.
I agree that it'd be nice if they warned you about features you're using that will be turned off, but I don't think it's unreasonable to expect that people requesting downgrades understand which features are in which plan.
Maybe this could be suggested to GitHub's Paperclips project, to avoid future confusion?
Agreed. But there were a lot of people celebrating GitHub’s recent free account changes who were saying you no longer needed the pro account; this is a good reminder that you may need the pro account after all and do that check.
Interesting, protected branches come free in GitLab. I never used Github to host my serious repos (I was using Bitbucket as soon as they started providing Git in addition to Hg).
I would suppose that as time passes by, Microsoft will improve the free offering avaialable on their service.
Did someone really just write a blog post on not downgrading an account without knowing what you're doing? Yes, you should not do that. You also shouldn't buy something without knowing what you're paying for, shouldn't vote for something you don't know what it is, you shouldn't eat stuff which might be poisonous but don't know for sure, you shouldn't cross a street without looking, gosh you certainly shouldn't drive a car with closed eyes not knowing where you're driving. Let's remind everyone of these things regularly, as this stuff is apparently not obvious anymore in 2019.
The OP clearly says, "It’s my fault for not reading the fine print more carefully."
They then further go on to say, "... when upgrading back to a Pro account, any branch protection rules you had before were permanently deleted when you downgraded to the free tier. They will all have to be recreated from scratch."
That is useful information, to me. People write blog posts about all types of things that are obvious to some and useful to others. Why be so nasty about this short post that seems to be useful to a lot of people? I guess that's 2019 for ya.
It's easy to ask snarky questions. That doesn't mean it's helpful or witty.
But isn't that a new behavior? Before I subscribed 1-2 year ago I read small characters pretty carefully, and in my memories in such case the behavior was to lock the previously private repo in a read-only state. Switching back to pro would then have restored full functionalities and setting on theses privates repos.
Automatically making it public seems like a new behavior, could someone confirm/infirm my memories?
If your account is downgraded automatically, Github will extort you for access to your private repositories. You don't get the option to just set them to public and stay on the free tier, Github simply forces you to pay up to get them back or lose them permanently.
Found this out when my old student account lapsed after I left college. Luckily, they screwed up and unlocked my private repos when attempting to charge me (there was no credit card on my Github account and never was -- nice work, Github) and I was able to pull my private repos and move everything to Gitlab.
Zero regrets. Extortion is never acceptable, especially when it's policy.
So if I don't pay the cable bill and my internet gets shut off, can I reasonably say I am being extorted by the cable company? That's a little hyperbolic. Plus, this isn't even how GH operates anymore, since they now offer free private repos.
Free accounts are now allowed unlimited numbers of private repos with limited collaboration.
But I would also not classify as removing access when you stop paying as extortion. You know when your account is paid up to. You would therefore know when you'd have featureful access to. It's not their fault you can't plan ahead is it?
I'm seeing people here chastising the OP for not fully knowing what he was getting into. But in all the excitement about the new free plan with private repos in January, GitHub failed to highlight other differences between the new free plan and the rebranded Pro plan.
We can blame the end user all we want, but GitHub could have prevented all of this.
Hosting private repositories on GitHub pages is another feature only available with the Pro plan. Figured this one out a few days after canceling my subscription.
I figured it out on the day my subscription lapsed, and someone created their own repository using my domain in their CNAME file. I had to wait until GitHub banned the user until I could set up the domain with GitHub Pages again.
Exactly. Git and github aren't backup tools. I always feel like github (and others) added to the git workflow things that are bolted on top of it and tie you to their platform.
It amazes me how many people just don't grasp the "distributed" part of git. No repository is special and it's trivially easy to make a new one somewhere.
I downgraded too, and noticed GitHub Pages stopped working (the content is still there, but they don't rebuild - although they did for a little while after downgrading). It is clearly marked as a Pro feature, I just hadn't considered that the free private repos would be more restricted.
It's not a big deal to me, I'll probably just make the repos public.
To some it might seem weird, but in cases like this having even your repository configuration in Configuration management makes sense, for example using Terraform[0]. Of course you have a chicken-egg problem for that first repo that actually contains your CI code. But if you just apply common sense that problem doesn't really exist.
With repositories it is just so easy for little configuration drift to slip in. A branch you forgot to protect. A user/group that should no longer have write permissions, etc.
I agree, and quite like Gitlab, but Github's recent decision to allow free private repos has surely put a bit of a dent in Gitlab/Bitbucket's marketshare expansion - many people were using those services instead of Github just for that feature.
There is a more serious impact of downgrading if you were hosting a static website from a private repository on github with a pro account. Apparently that's not supported with free account. My personal website went down as soon as I downgraded to free. I didn't mind making the repo public, so it was an easy fix, but may not be same for others.
Using gitlab and bitbucket for my personal repos on their free tiers have solved a lot of problems for me. Also, a lot of features are way ahead of github on these 2 platforms including CI/CD, Code reviews, and other tooling.
It's fairly common to do `git push --force` (or hopefully `--force-with-lease`) after operations like rebasing. This overwrites the remote history, so can easily lose work. Many people set some branches as protected, so they can't be force-pushed over accidentally.
[+] [-] wikwocket|7 years ago|reply
I agree that it'd be nice if they warned you about features you're using that will be turned off, but I don't think it's unreasonable to expect that people requesting downgrades understand which features are in which plan.
Maybe this could be suggested to GitHub's Paperclips project, to avoid future confusion?
[+] [-] Ensorceled|7 years ago|reply
[+] [-] endergen|7 years ago|reply
[+] [-] xtracto|7 years ago|reply
I would suppose that as time passes by, Microsoft will improve the free offering avaialable on their service.
[+] [-] dustinmoris|7 years ago|reply
[+] [-] Tenhundfeld|7 years ago|reply
They then further go on to say, "... when upgrading back to a Pro account, any branch protection rules you had before were permanently deleted when you downgraded to the free tier. They will all have to be recreated from scratch."
That is useful information, to me. People write blog posts about all types of things that are obvious to some and useful to others. Why be so nasty about this short post that seems to be useful to a lot of people? I guess that's 2019 for ya.
It's easy to ask snarky questions. That doesn't mean it's helpful or witty.
[+] [-] Shish2k|7 years ago|reply
Isn't the whole point of democracy "a large enough volume of ignorance will average out to something sensible"? :P
[+] [-] MarHoff|7 years ago|reply
Automatically making it public seems like a new behavior, could someone confirm/infirm my memories?
[+] [-] collinvandyck76|7 years ago|reply
[+] [-] ausbah|7 years ago|reply
[+] [-] moviuro|7 years ago|reply
[0] https://docs.gitlab.com/ee/user/project/protected_branches.h...
[+] [-] dsumenkovic|7 years ago|reply
[+] [-] sli|7 years ago|reply
Found this out when my old student account lapsed after I left college. Luckily, they screwed up and unlocked my private repos when attempting to charge me (there was no credit card on my Github account and never was -- nice work, Github) and I was able to pull my private repos and move everything to Gitlab.
Zero regrets. Extortion is never acceptable, especially when it's policy.
[+] [-] zrobotics|7 years ago|reply
[+] [-] oliwarner|7 years ago|reply
Free accounts are now allowed unlimited numbers of private repos with limited collaboration.
But I would also not classify as removing access when you stop paying as extortion. You know when your account is paid up to. You would therefore know when you'd have featureful access to. It's not their fault you can't plan ahead is it?
[+] [-] eugeniub|7 years ago|reply
We can blame the end user all we want, but GitHub could have prevented all of this.
[+] [-] floatingatoll|7 years ago|reply
[+] [-] pstadler|7 years ago|reply
[+] [-] eugeniub|7 years ago|reply
[+] [-] steve_taylor|7 years ago|reply
[+] [-] latchkey|7 years ago|reply
Then store backups of your repositories somewhere else than GitHub.
[+] [-] johnchristopher|7 years ago|reply
[+] [-] leokennis|7 years ago|reply
Cloud backup (Backblaze etc.) is for when my house is on fire. But the only backups I actually trust are the ones that I have 100% control over.
[+] [-] black-tea|7 years ago|reply
[+] [-] syshum|7 years ago|reply
[+] [-] d2p|7 years ago|reply
It's not a big deal to me, I'll probably just make the repos public.
[+] [-] leethargo|7 years ago|reply
Do you mean some specific additional features for GitHub Pages, such as a vanity URL, or building from private repos?
[+] [-] Ristovski|7 years ago|reply
[+] [-] aequitas|7 years ago|reply
With repositories it is just so easy for little configuration drift to slip in. A branch you forgot to protect. A user/group that should no longer have write permissions, etc.
[0] https://www.terraform.io/docs/providers/github/r/branch_prot... https://www.terraform.io/docs/providers/type/vcs-index.html
[+] [-] amelius|7 years ago|reply
[+] [-] copperx|7 years ago|reply
[+] [-] thrownaway954|7 years ago|reply
[+] [-] SeriousM|7 years ago|reply
[+] [-] dsgriffin|7 years ago|reply
[+] [-] giancarlostoro|7 years ago|reply
[+] [-] reledi|7 years ago|reply
GitHub allows you to restore branches and commits are restorable from the ref log.
[+] [-] jayeshsalvi|7 years ago|reply
[+] [-] natfriedman|7 years ago|reply
https://twitter.com/natfriedman/status/1109880047207235589?s...
[+] [-] theshadowmonkey|7 years ago|reply
[+] [-] el_dev_hell|7 years ago|reply
Sorry to hear!
[+] [-] ddtaylor|7 years ago|reply
[+] [-] richardwhiuk|7 years ago|reply
[+] [-] sigi45|7 years ago|reply
[+] [-] d2p|7 years ago|reply
[+] [-] progval|7 years ago|reply
It doesn't actually delete the commits, but you can't find them anymore if you don't remember the hash of the former head commit of the branch