GitHub branch rules (protect your git branches)

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • You can protect important branches by setting branch protection rules, which define whether collaborators can delete or force push to the branch and set requirements for any pushes to the branch, such as passing status checks or a linear commit history.
    Ge started with Open Source in 10mins
    • How to contribute to o...
    LEARN MORE
    JOIN our inclusive open source community EddieHub now for FREE ... eddiehub.org, also checkout my website and sign up to our community NEWSLETTER... eddiejaoude.io for my live stream + video schedule and community calls
    Also join our community GitHub organisation by creating an issue with the type "invite me to the organisation" :)
    I now have a 2nd RUclips channel for short video clips of 60s or less, subscribe ...
    / eddiejaoudetv
    SERVICES I USE AND RECOMMEND
    Some of these might be affiliate links, no extra cost you to, but I get a little $ if you sign up, plus you might get a discount too
    - Live streaming with Streamyard links.eddiejaou...
    - Cloud hosting with Digital Ocean, you will get $100 FREE credit links.eddiejaou...
    - Membership, Newsletters, CRM all in one with Kartra links.eddiejaou...
    - Awesome backup platform, BackBlaze links.eddiejaou...
    - Descript for video editing, audiograms and transcription links.eddiejaou...
    - Riverside online recording studio for the best quality riverside.fm/?...
    COMMUNITY SPONSORS
    A BIG thank you to my GitHub Sponsors:
    ***
    DailyDotDev github.com/dai...
    Emma Wain github.com/ewainy
    ***
    - Yona github.com/Yoname
    - Santosh Yadav github.com/san...
    FIND ME ON OTHER SOCIAL PLATFORMS
    Don’t forget to support my channel by subscribing below, it’s free, and also share with your friends. Subscribe now!!
    www.youtube.co...
    Follow on other socials for behind the scenes footage, join discord to continue the conversation...
    eddiejaoude.io
    github.com/edd...
    / eddiejaoude
    / eddiejaoude
    / eddiejaoude
    / eddiejaoude
    / discord
    github.com/Eddi...
    Markdown crash course in 15mins!
  • НаукаНаука

Комментарии • 35

  • @eddiejaoude
    @eddiejaoude  2 года назад

    Get a job by making your GitHub profile look professional, you can customise it by taking my FREE video and text course www.eddiejaoude.io/course-github-profile-landing

  • @ahmad-murery
    @ahmad-murery 2 года назад +2

    Thanks Eddie, this is a nice video (no surprise) 👍

    • @eddiejaoude
      @eddiejaoude  2 года назад

      Thank you Ahmad for the great feedback!

  • @botvinay7079
    @botvinay7079 Год назад +1

    Thank You for the Information sir :)

    • @eddiejaoude
      @eddiejaoude  Год назад

      Thank you for the great feedback Vinay!

  • @jerome-weiss
    @jerome-weiss Год назад +1

    I wonder why you don't set a status check in the "Require branches to be up to date before merging" setting?! The description says: "The setting will not take effect unless at least one status check is enabled (see below)."

  • @joelwalkley3902
    @joelwalkley3902 2 года назад +2

    I wish GitHub would allow different merge strategies per branch. For example: Squash feature branches into develop; but environment branches get "regular" merges. Any guidance on how to accomplish that? Seems to me that option is either on/off for the whole repo and whatever method you did most recent is the button state at the next merge.

    • @eddiejaoude
      @eddiejaoude  2 года назад

      yes unfortunately this is at a repo level not a branch level. I think the maintainers just need to be aware. You could have a GitHub Action that added a relevant comment depending on the destination branch, this would remind the person merging

  • @sanjaypaudel3296
    @sanjaypaudel3296 Год назад +2

    is it possible to enable branch protection rules at the organisation level in Github so that all repositories part of that organisation inherit these rules for the applied branches. Right now its really a hassle to enable those same set of rules on a per repo basis for same set of branches.

    • @eddiejaoude
      @eddiejaoude  Год назад +1

      I am not aware this is possible yet, but I am sure in the future there might be a way to do it at the organisation level

  • @abhaysingh8896
    @abhaysingh8896 Год назад +3

    Awesome! Thank you for this. very helpful.

  • @emilioortega9487
    @emilioortega9487 Год назад +1

    Thanks for the video! At 3:06 when you metion about "Require status checks to pass before merging" how do you manage that check if you use jenkins for CI/CD instead of github actions ?

    • @eddiejaoude
      @eddiejaoude  Год назад

      thank you for watching! If your Jenkins shows up as a check, then this will be included in the "required status checks"

  • @andyheld3136
    @andyheld3136 6 месяцев назад

    How can i allow my pipeline to tag the main if prs are required by the rule? Can i give it permission without creating a pull request? The rule in general is absolutely useful, but the github action is the only exception.

  • @antonyshaji2008
    @antonyshaji2008 4 месяца назад

    6:13

  • @Xaalek
    @Xaalek 9 месяцев назад +1

    You look like that guy in Ex Machina

  • @lashaunanichols7003
    @lashaunanichols7003 2 года назад

    Super weird... i just made a repo and i dont see a "Branches" option on the left hand side.

    • @eddiejaoude
      @eddiejaoude  2 года назад

      Oh strange, can you join us in the EddieHub Discord and you can share some links and screenshots

  • @hea4909
    @hea4909 3 месяца назад +1

    Thank you.

    • @eddiejaoude
      @eddiejaoude  3 месяца назад

      You're welcome! thank you for the great feedback

  • @KarthikeyanChandramohan
    @KarthikeyanChandramohan 11 месяцев назад

    how do i add username or mail id associated with github which triggers a mail asking for approval when someone pushed code into main branch

    • @eddiejaoude
      @eddiejaoude  11 месяцев назад

      click on watch the repo and you will get all notifications

  • @PS-vj6jz
    @PS-vj6jz Год назад +1

    Very Good, thanks.

    • @eddiejaoude
      @eddiejaoude  Год назад

      Thank you for the great feedback!

  • @aldrinseanpereira140
    @aldrinseanpereira140 2 года назад +1

    Lets gooo!! great video Eddie!!

  • @joeltastet5666
    @joeltastet5666 2 года назад

    I don't understand fully what you speak about the branches option because I used it only once when I discover the basics on Git and it was in a basic level.

    • @eddiejaoude
      @eddiejaoude  2 года назад +2

      I will try to explain a bit more, git can have branches, but these branches can be protected on github so even if someone has permission to push to that branch, they need to follow more rules

    • @joeltastet5666
      @joeltastet5666 2 года назад

      @@eddiejaoude Okay

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz Год назад

    this feature is not free?