honestly though... how many everyday devs actually use something like this?
Think Twice Before Downgrading to a Free GitHub Account
51–60 of 102 posts
Re: Think Twice Before Downgrading to a Free GitHub Account
#52With 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
Re: Think Twice Before Downgrading to a Free GitHub Account
#53Did 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…
> shouldn't vote for something you don't know what it is Isn't the whole point of democracy "a large enough volume of ignorance will average out to something sensible"? :P
Re: Think Twice Before Downgrading to a Free GitHub Account
#54Earlier quoted context omitted.
If you have a job where you arent allowed to commit directly to master / development branches this is probably how they enforce it. It keeps juniors from pushing bad code without peer review. It forces developers into doing PRs instead. Protected branches are the first thing we setup when we make a new repository at work once we hit the "getting good enough for production and autobuilds" stage of development.
> It keeps juniors from pushing bad code without peer review. It keeps all developers from pushing code without peer review. (In my experience, it’s just as often senior devs pushing broken code because “this was a simple change, why does it need review?” and it in fact being broken. Furthermore, doing PRs is not solely to “check for mistakes”, they are also used for knowledge sharing, among other reasons)
This is true, I don't know why I went with juniors.
Re: Think Twice Before Downgrading to a Free GitHub Account
#55honestly though... how many everyday devs actually use something like this?
If you have a job where you arent allowed to commit directly to master / development branches this is probably how they enforce it. It keeps juniors from pushing bad code without peer review. It forces developers into doing PRs instead. Protected branches are the first thing we setup when we make a new repository at work once we hit the "getting good enough for production and autobuilds" stage of development.
Re: Think Twice Before Downgrading to a Free GitHub Account
#56I think it's stupid that GitHub stores (meta-) data in a place that's not governed by git. Everything should be in git.
Re: Think Twice Before Downgrading to a Free GitHub Account
#57Earlier quoted context omitted.
> It keeps juniors from pushing bad code without peer review. It keeps all developers from pushing code without peer review. (In my experience, it’s just as often senior devs pushing broken code because “this was a simple change, why does it need review?” and it in fact being broken. Furthermore, doing PRs is not solely to “check for mistakes”, they are also used for knowledge sharing, among other reasons)
> It keeps all developers from pushing code without peer review. This is true, I don't know why I went with juniors.
Re: Think Twice Before Downgrading to a Free GitHub Account
#58Did 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…
> shouldn't vote for something you don't know what it is Isn't the whole point of democracy "a large enough volume of ignorance will average out to something sensible"? :P
I hope not. A much stronger argument is that government should be by consent of its citizens. Otherwise, you get democracy-is-bad-because-people-vote-wrongly arguments (e.g. women vote too left-wing or white people vote too right-wing).
Re: Think Twice Before Downgrading to a Free GitHub Account
#59Hosting 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.
Re: Think Twice Before Downgrading to a Free GitHub Account
#60What? What is he doing that it makes him fear code loss?
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.
I do often rebase on my local branch but i will communicate a force push on master to the whole team and will disable protection temporarily.
If thats the only reason, he should overthink his workflow.