Git Pull Requests explained - Computer Stuff They Didn't Teach You #5

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 144

  • @KenanCasey
    @KenanCasey 4 ปีที่แล้ว +139

    I’d love to hear your explanation of merge vs rebase.

    • @andersborum9267
      @andersborum9267 4 ปีที่แล้ว +7

      I agree with this suggestion. The rebase part always came across as a quite dangerous command and I’d like to learn more about it.

    • @diegogarber1
      @diegogarber1 4 ปีที่แล้ว +4

      Upvoting!

    • @mAcCoLo666
      @mAcCoLo666 4 ปีที่แล้ว

      I second this one

    • @muteza
      @muteza 4 ปีที่แล้ว

      Go go go!

    • @orney21d
      @orney21d 4 ปีที่แล้ว

      upvoting this

  • @nikfp
    @nikfp 4 ปีที่แล้ว +19

    This is pure gold! Scott, you are the Bob Ross of programming. Big concepts come through but you make it look and feel easy and make it understandable, and your tone of voice pace of teaching are just right to make sure it sticks in the grey matter. I would gladly pay for this material and you have it presented for the cost of watching a 20 minute video. Thank you! You have an upvote and a new subscriber!

  • @jamers.99
    @jamers.99 4 ปีที่แล้ว +36

    I've done git for years and I know it like the back of my hand, but I still watched this, not sure why :D Scott's just too good!

    • @Manbearpiet
      @Manbearpiet 4 ปีที่แล้ว

      Same here, guess I expect to learn something anyway :).

  • @ArnabDeveloper
    @ArnabDeveloper 4 ปีที่แล้ว +13

    This video is about pull request from a maintainer perspective. Please make a video about pull request from a contributor perspective.
    Suppose I forked a repo and clone it in my local machine. After that create a new branch to start coding. In this time my local git repo's remote will be my forked version. How to create an upstream remote to the original repo so that I can pull changes made in the original repo while I am working on my forked version?

  • @KingKong-bn3hp
    @KingKong-bn3hp 3 ปีที่แล้ว

    I used git for years, this is the best explanation of 'Pull Request' that I've ever heard. Easy to understand, intuitive... Superb!!

  • @ok_tim
    @ok_tim 4 ปีที่แล้ว +17

    This is an amazing tutorial. As a git newbie I appreciate and look forward more.

  • @cattykid
    @cattykid 4 ปีที่แล้ว +2

    Scott you're the man the way you explain git in these 2 videos are value than a whole course . Thank Bro made it so much clear now .

  • @kuruptgt
    @kuruptgt 2 ปีที่แล้ว

    One of the best 20 minutes I've spent learning about the confusing parts of git pull. Subscribed and thank you.

  • @KameleonKraft
    @KameleonKraft 4 ปีที่แล้ว +1

    you teach the stuff in the simplest way and I've learnt a lot from you. thanks a lot...

  • @pabloide86
    @pabloide86 4 ปีที่แล้ว +9

    Thanks Scott!! I love these videos because even if you already know this stuff you also learn how to transmit that knowledge!! It is really hard to teach and this serves as a guide on how to approach it!! 👏

  • @agarwalpeeush
    @agarwalpeeush 4 ปีที่แล้ว +1

    Thanks Scott for another git video. I learnt about PullRequests and what's going behind when we pull/review/merge requests in the repository from another user. 👌

  • @sojourner5294
    @sojourner5294 2 ปีที่แล้ว

    Excellent work ; clear , concise explanation with just the right depth for newbies and experiencedies looking to renew their knowledge ! Thanks so much !

  • @mwonsil
    @mwonsil 4 ปีที่แล้ว +4

    Excellent. Great to see both the command line and what the "short cuts" do.

  • @christophergrow
    @christophergrow 4 ปีที่แล้ว +1

    Thank you so much. As an ex TFS user and GIT newb, this was super helpful.

  • @indylawi5021
    @indylawi5021 3 ปีที่แล้ว

    As always, great job explaining the nitty-gritty of Pull request with clarity. Thanks a lot, Scott!

  •  4 ปีที่แล้ว

    It’s so great to see that this guy has a great teaching skills. Understanding him is so easy. Everything makes sense.

  • @RajeshDuggal
    @RajeshDuggal 4 ปีที่แล้ว +1

    Excellent video! It's a good idea for people learning the concept of "git pull", to understand that it's doing a git fetch followed by a merge.

  • @ManuelFabbri08
    @ManuelFabbri08 4 ปีที่แล้ว +2

    Thank you Scott.
    PS: I'm Italian and I usually use english subtitles. While I was watching this video, after a while I realized that I didn't activate them and I was just listening :)

  • @ricardomlourenco
    @ricardomlourenco 4 ปีที่แล้ว +3

    I never understood the fork thing! Thank you very much for the video! I love how you explain how to do it on command line.
    Thanks!

  • @julioribeiro1909
    @julioribeiro1909 3 ปีที่แล้ว

    Daam!! for the first time I really understand what I'm doing when (poorly) using Git. Thanks, man. Very didactic, the way I appreciate as someone who loves to teach others too.

  • @JamieWillisRose
    @JamieWillisRose 4 ปีที่แล้ว +1

    Very helpful. Git and GitHub has been a bit of mystery to me, but your videos are very easy to follow. Much appreciated.

  • @fexofenadinaGenerica
    @fexofenadinaGenerica 4 ปีที่แล้ว +2

    Awesome tutorial. Never got to learn properly about pull requests until now.

  • @richardcrouch2054
    @richardcrouch2054 3 ปีที่แล้ว

    Great tutorial for beginners - love the great explanations without dropping into unnecessary git-speak

  • @vlplbl85
    @vlplbl85 4 ปีที่แล้ว +1

    You explain everything very clearly. It's a pleasure to watch.

  • @prasad_yt
    @prasad_yt 4 ปีที่แล้ว +1

    Scott, you have a great skill to simplify ...born teacher !

  • @kennethbrannigan4651
    @kennethbrannigan4651 4 ปีที่แล้ว

    Great video Scott. I have used TFS for years and just started to learn Git so that we can migrate from TFS to Git in the near future. These videos have been very helpful to get my mind wrapped around how Git works.

  • @sarcasmasaservice
    @sarcasmasaservice 4 ปีที่แล้ว +1

    Thanks Scott! I really hope to see more videos on git. Specifically, an explanation of rebasing and stashing. Also, a video on using git as part of the code review process - performing reviews of PRs and commits to branches before they are pulled into main - would be very much appreciated.

  • @daStitches
    @daStitches 4 ปีที่แล้ว +3

    Thanks for these videos! Perfect timing since I spent part of this last weekend learning git, or at least some of the basics and this was a great way to reinforce what I lean along with helping with some of the concepts!

  • @paulhart8971
    @paulhart8971 4 ปีที่แล้ว +1

    Thanks for the great videos, particularly these about Git. You have been able to net out the information I need to get started and productive while giving me enough understanding to get more in-depth info should I want/need it.

  • @paulhumphreys7309
    @paulhumphreys7309 4 ปีที่แล้ว +1

    Thanks Scott! Starting to clear the cobwebs of using Git again. :)

  • @vladchendev6195
    @vladchendev6195 2 ปีที่แล้ว

    Awesome Git series Scott! You make things easy to comprehend. I really appreciate you calm manner of going over all the tiny aspects. Keep up with the great work on your channel;.

  • @AdalbertoHernandezVega
    @AdalbertoHernandezVega 2 ปีที่แล้ว

    Excellent series! The simplest way to explain Git indeed! Thanks a lot Scott.

  • @rmatien
    @rmatien 4 ปีที่แล้ว +1

    I just learning git and you're video make it easier. Thanks Scott

  • @MagicMindification
    @MagicMindification 4 ปีที่แล้ว +1

    @scott could you also made some changes in the branch from maggie and commit it so she sees the commit ?

  • @AbdulMannan-jz7zm
    @AbdulMannan-jz7zm 4 ปีที่แล้ว +1

    Thank you Scott great series. looking forward to seeing FF merge and rebase stuff.

  • @eriknagel3488
    @eriknagel3488 2 ปีที่แล้ว +1

    You beamed me up, thanks!

  • @aweklin
    @aweklin 4 ปีที่แล้ว +1

    I didn't know what Fork means before watching this video.
    Thanks for this great explanation, Scott!

  • @dylanhall5305
    @dylanhall5305 2 ปีที่แล้ว

    Great refresher of git basics. Well explained! If only we could have a tool like git for real life, we would be able to revert to 2019. We could squash all of 2020 , cherry pick the good parts of 2021 and have a patch ready for 2022

  • @thesuperiorman8342
    @thesuperiorman8342 3 ปีที่แล้ว

    Thank you Scott. You make things so simple.

  • @HarshBaidJ
    @HarshBaidJ 4 ปีที่แล้ว

    Now I'm waiting for your next video on git rebase. Your way of explaining is really good. It puts the thing in right place in my mind 👍

  • @enzocardeal
    @enzocardeal 4 ปีที่แล้ว +2

    Hi Scott, fist of all, thank you for sharing with us, newbies, your knowledge! Do you think regex is a good topic for a next video?

  • @RussellRiker
    @RussellRiker 4 ปีที่แล้ว +1

    Would also love too see rebase vs. merge. Working with stashes and Tags. Please and thank you. Great video's.

  • @srinip9690
    @srinip9690 4 ปีที่แล้ว +1

    HI Scott ,excellent video ,really helpful .Just one quick question ,after maggie forks branch and makes change ,how does she send pull request for you to review ?

  • @GlennFaulkner
    @GlennFaulkner 4 ปีที่แล้ว +1

    This is a great video, still a newbie to coding and Git and this and the previous video have been Very helpful thank you

  • @stevekent
    @stevekent 4 ปีที่แล้ว

    Thanks for taking the time to do this!

  • @henryallsworth
    @henryallsworth 4 ปีที่แล้ว

    This is great. I like your approach to presenting and explaining. More Git please!!

  • @arnay07
    @arnay07 4 ปีที่แล้ว +1

    Thanks Scott really well explained. You are a great teacher

  • @vmamore
    @vmamore 4 ปีที่แล้ว +1

    Amazing series Scott, please continue, thanks!!!

  • @brad2cc
    @brad2cc 4 ปีที่แล้ว

    Hi Scott,
    Would you be able to make a video on using a single static instance of the HttpClient in a C# application and in particular, cover off how numerous async methods can apply their own different settings (timeouts, headers, auth) without impacting each other? Can this be done?
    Would appreciate it.
    Thank you for the great content !!!

  • @markkazdad381
    @markkazdad381 4 ปีที่แล้ว

    Suppose Maggie deleted her branch because you have now incorporated her feature into main. What does she need to do to update her local copy of main? Does it depend on how she created her fork? Is it automatic, or will she need to row through some gears?

  • @dalchemistt7
    @dalchemistt7 4 ปีที่แล้ว

    This, as well as the previous video are so amazing. I have been using using Git for past few months and have heard about branching and pull requests - but they always felt scary for some reason. So I simply did add, commit, push - that's what all Git was to me. These videos really showed me how useful these features are. I am already thinking of ways they can enhance my workflow. Can these be used as effectively with Jupyter Notebooks as with regular Python scripts though 🤔. Thank you so much...:)

  • @MahaPSaranu
    @MahaPSaranu 4 ปีที่แล้ว +2

    This is one git tutorial that I can understand easily. Thank you so much.

  • @dmitriyobidin6049
    @dmitriyobidin6049 4 ปีที่แล้ว

    What if we didn't fork it? Would it be possible to create a pull request if we just made a total copy of original rep and then just uploaded to our github account.
    Or we have to fork something to be able to create a pull requests?

  • @jwalkerjr
    @jwalkerjr 4 ปีที่แล้ว +1

    Thank you, Scott! This will be so helpful to so many people!

  • @pandie_me
    @pandie_me 4 ปีที่แล้ว

    There videos have been seriously helpful! I've been tied to relying on the likes of GitKraken, but understanding how this works on the cli has been something I've wanted to learn. Your way of teaching it has surpassed all others, and I can't thank you enough. :)

  • @visasimbu
    @visasimbu 4 ปีที่แล้ว

    Nice video... Eagerly waiting for squash and rebase video

  • @manolovalenzuela
    @manolovalenzuela 4 ปีที่แล้ว

    I posted this in the wrong video... funny because is to ask you "how to undo things XD", I'll share it here, where it belongs.
    Hi Scott!! It would be very useful if you explain how to "undo things" at the different levels. I mean, back to the state the code was before execute "git add", before "git commit", before "git push", how to fix mistakes when is already merged in the upstream, how to remove things from the history of upstream (e.g. when accidentally you upload a secret). Thank you!!

  • @piotrn2491
    @piotrn2491 4 ปีที่แล้ว +2

    I think we should all say 'thank you' to Maggie.

  • @kensearle4892
    @kensearle4892 4 ปีที่แล้ว

    Thanks! I vote to keep going with the Git videos (if you have time). Seeing day-to-day, real-world type scenarios is helpful. Things like how a dev team handles merge conflicts when working on multiple feature branches or how code reviews can be done locally prior to committing to the main (master). Great Videos! Much appreciated.

  • @mmansouri7690
    @mmansouri7690 4 ปีที่แล้ว

    I'd love to hear more about github, PR templates, compulsory PR reviews and actions

  • @sanjeev-shrestha
    @sanjeev-shrestha 4 ปีที่แล้ว

    @scott both Git 101 and this pull requests were great vids. we are planning to move from TFVC to git in near future and one thing we are struggling or trying to understand is the branching strategy. could you do one of your future videos regarding your recommended branching strategy?

  • @mesh3al32
    @mesh3al32 4 ปีที่แล้ว +2

    couldn't find an easier explanation, you did an awesome job explaining Git! many thanks :)

  • @ArnonDanon
    @ArnonDanon 4 ปีที่แล้ว +2

    You are super awsome scott. Thank you so much for the effort you put.

  • @hskartono
    @hskartono 3 ปีที่แล้ว

    Hi scott, i like your video. I have question, if i were in a feature branch, and i want to do a pull request, do i need to do a ```git pull origin main``` first to minimze conflict in pull request?

  • @shahbaazshareef5900
    @shahbaazshareef5900 4 ปีที่แล้ว

    Hi Scott , thanks for making this git series.
    i'd love to know your take on git branching model or Gitflow workflow. i want to learn how it's applied and works in production. An explanation video would be great

  • @a-r-m-i-n
    @a-r-m-i-n 3 ปีที่แล้ว

    "Fast Forward only" strategy saves you a lot of mess in your git log! No matter if you use pull requests or git natively.

  • @indylawi5021
    @indylawi5021 4 ปีที่แล้ว +1

    As always, great job with the explanation. Thanks, Scott!

  • @mkhulekeleni
    @mkhulekeleni 4 ปีที่แล้ว +1

    Thank you Scott, your videos/lesson are amazing.

  • @babakbahrami3384
    @babakbahrami3384 4 ปีที่แล้ว +3

    Thanks Scott, another great explanation 👍

  • @cristianenache8715
    @cristianenache8715 3 ปีที่แล้ว

    Hi Scott, how do you get the colored git-related text on your terminal?

  • @alpsavasdev
    @alpsavasdev 4 ปีที่แล้ว

    A teacher who makes sure that you understand.

  • @frankhaugen
    @frankhaugen 4 ปีที่แล้ว

    I believe in friendly names, so the suggested main branch name in GitHub should be a random first name. "Merge your branch into Lisa", (or Bob), would be more fun to say than "main" XD

  • @isamelbousserghini
    @isamelbousserghini 4 ปีที่แล้ว

    excellent video, your style of explaining makes complex things easy, Thanks a lot

  • @centipedekid9824
    @centipedekid9824 4 ปีที่แล้ว +1

    Can you do a complete tutorial of how you got your powershell to look like that? I tried to follow your old video and I broke my prompt.

    • @shanselman
      @shanselman  4 ปีที่แล้ว

      Ok I’ll do a video. What broke?

    • @centipedekid9824
      @centipedekid9824 4 ปีที่แล้ว

      @@shanselman I couldn't get the font to go through. So I kept getting weird looking symbols.

    • @shanselman
      @shanselman  4 ปีที่แล้ว

      th-cam.com/video/lu__oGZVT98/w-d-xo.html here you go

  • @sreerajpj
    @sreerajpj 4 ปีที่แล้ว +1

    Thanks Scott. Theses videos are very helpful

  • @AerroReyna
    @AerroReyna 4 ปีที่แล้ว

    There is not mistakes, only happy pull request, the Bob Ross of computer stuff xP

  • @trud811
    @trud811 4 ปีที่แล้ว

    Goog topic, but can you focus on hard stuff? It is all quite clear and simple in your examples, but people are paying for 50$ for the Fork(git client), it will be interesting to know what is so hard to achieve in VS code that you need to pay 50$(quite a large sum) to solve a problem.

  • @FilipCodes
    @FilipCodes 3 ปีที่แล้ว

    This channle is a knowledge gold mine

  • @davidaldrich449
    @davidaldrich449 4 ปีที่แล้ว +1

    Thanks for a great explanation of pull requests. I am used to a centralized source code system (Subversion). With git, could a team commit to a cloud repository without using pull requests? How might team development work with git in a non-open source model?

    • @shanselman
      @shanselman  4 ปีที่แล้ว +2

      You COULD commit directly but ideally you'd do work in branches and someone (?) would merge them in as appropriate. Google for "GitFlow"

    • @junior.santana
      @junior.santana 4 ปีที่แล้ว +3

      With git, commit and push are two different steps, whereas in Subversion we generally just commit our work and we're done, it's available to our colleagues.
      In git we commit (or rather, merge from another branch) on our *local* repo and then *push* our changes to the *remote*.

  • @DukaSoft
    @DukaSoft 4 ปีที่แล้ว +3

    This is awesome..
    Thanks for the newbie friendly tutorial :)

  • @odelljl
    @odelljl 4 ปีที่แล้ว

    Great videos ... I've passed the first one on to several folks. I would love to introduce this video to teams I work with, but they are using Azure DevOps, and they don't use forks. I know git on Azure DevOps is passe (good luck finding Microsoft demos these days acknowledging it exists) but an alternate, dare I say "parallel" video using Azure DevOps would be awesome. Keep up the great work.

  • @disouzam_bh
    @disouzam_bh 2 ปีที่แล้ว

    Nice and accurate as always, Scott! Thanks!

  • @hooktest8101
    @hooktest8101 4 ปีที่แล้ว +1

    your videos are very helpful indeed . I just recommend if you can raise your voice a bit.

  • @cdm297
    @cdm297 3 ปีที่แล้ว

    your explanation is simply awesome :-)

  • @fpenarru
    @fpenarru 4 ปีที่แล้ว

    Thank you very much for your channel, Scott!. Your explanations are very clear, and I appreciate your disposition to help other people. Keep going, please! :-)

  • @kaustubhtiwari2194
    @kaustubhtiwari2194 4 ปีที่แล้ว

    what customized terminal is this?

  • @nickpennisi2022
    @nickpennisi2022 3 ปีที่แล้ว

    @scott, love your videos man!!! Keep 'em comin! Thank you!

  • @cyberphox1
    @cyberphox1 3 ปีที่แล้ว

    Excellent tutorial, subscribed!

  • @omerozdemir1395
    @omerozdemir1395 4 ปีที่แล้ว +1

    your videos are like asmr but with education

  • @abdurrehman-bx1yo
    @abdurrehman-bx1yo 2 ปีที่แล้ว +1

    Very Good

  • @sedzaniramathaga
    @sedzaniramathaga 4 ปีที่แล้ว

    so i created a local repository for a project that I was working on after some few commits, I wanted to push it to the remote repository so I went and created one on github however I got a problem when pushing the files to the remote repo and it's saying updates were rejected because the tip of my current branch is behind its remote counterpart... is there a way to fix this

    • @shanselman
      @shanselman  4 ปีที่แล้ว +1

      Try a git pull to get updated locally. I can do a video as well.

    • @sedzaniramathaga
      @sedzaniramathaga 4 ปีที่แล้ว

      @@shanselman I would really appreciate that

  • @itcloudguy
    @itcloudguy 4 ปีที่แล้ว +1

    It`s just perfect tutorial! Thank you very much!

  • @comichero853
    @comichero853 4 ปีที่แล้ว +2

    I wish you make 100 -1000 $ from TH-cam per month.
    You are doing good work.
    Thanks for all of this.

  • @iamdedlok
    @iamdedlok 3 ปีที่แล้ว

    Thanks Scott! Very helpful!

  • @alakerfn
    @alakerfn 4 ปีที่แล้ว

    Thanks Scott, great video!

  • @DaJungleDred
    @DaJungleDred 4 ปีที่แล้ว

    Great stuff Scott thank you for sharing ✊🔥

  • @DanEllis
    @DanEllis 4 ปีที่แล้ว

    How long have you been calling your master branch main?

  • @manjitsinghyadav46
    @manjitsinghyadav46 3 ปีที่แล้ว

    Extremely helpful, Thank you.

  • @MarkFolson
    @MarkFolson 6 หลายเดือนก่อน

    Subscribed! Thank you for this video!

  • @Corrado49
    @Corrado49 2 ปีที่แล้ว

    Nice content, thanks Scott