Git vs. GitHub: What's the difference?

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

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

  • @Insain71
    @Insain71 2 ปีที่แล้ว +34

    I been learning git and github following directions but not fully understanding what I was doing. After watching this video I understand exactly what I was doing and have more of an understanding to start building some projects with git & github. Thank you for the illustrations they really help.

  • @vedkorla300
    @vedkorla300 2 ปีที่แล้ว +41

    I didn't know Mr.Beast was so good at explaining tech concepts. Good job Jimmy.

  • @walKyism
    @walKyism หลายเดือนก่อน +1

    4yrs and this explanation vid still killing it on the essentials

  • @andresalvarez7303
    @andresalvarez7303 3 ปีที่แล้ว +414

    Plot twist: the video is NOT flipped....he's just really good at writing backwards 🤣

    • @alejandroperez5368
      @alejandroperez5368 3 ปีที่แล้ว +46

      Plot twist: he's not writing on a transparent acrylic in front of him. He's not even depositing ink. It's all CGI

    • @Gonagaoa
      @Gonagaoa 2 ปีที่แล้ว +8

      He rotated the screen, seethe watch in his hand, it's in right

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

      😂

    • @sanctioned.ayusharma
      @sanctioned.ayusharma 2 ปีที่แล้ว +8

      Plot twist: There's no plot twist...

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

      It's all done with smoke and mirrors..
      ..well, mirrors only.

  • @colorfuljosh
    @colorfuljosh 3 ปีที่แล้ว +23

    some of the most informative prog/comp/IT videos on youtube, good work

  • @sathya-enjoy_lifetothefullest
    @sathya-enjoy_lifetothefullest 4 ปีที่แล้ว +52

    Simple, crystal clear with examples.. perfect 👌

  • @MrEvansjethro
    @MrEvansjethro 3 ปีที่แล้ว +71

    Thank you Nathan and IBM Technology for the great content. You guys put a lot of effort to make things easy for us to understand. Keep up the awesome work.

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

      Right?

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

    This is by far the best among the many videos I've watched to get the basics of Git & Github. Keep up the awesome and simplified explanations.

    • @francis_tech
      @francis_tech 7 หลายเดือนก่อน

      You taught me Networking MMU 🫡

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

    I keep coming back to this channel for clear and straight-to-the-point information. Thank you for your explanation.

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

    Excellent vid. Just some quick questions which are probably obvious to everyone else:
    1) How does Greg know a PULL-MERGE is required, did a PUSH attempt fail?
    2) Does Git interrogate and analyze the code inside the file and highlight the specific conflicts or is it just file name, file size and timestamps?
    3) Does GitHub/Lab automatically push a notification to whom ever is responsible for answering the PULL-REQUEST?
    4) Is there a part two vid clearing up the Greg stages of interaction with the main branch?

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

      did you find answers ?

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

      @@adalovelac24 did he/she find answers?

    • @adebiyial
      @adebiyial 2 ปีที่แล้ว +33

      I can help you here.
      1. Greg can tell if he has to pull the code from the main branch by checking the GitHub repository to see if there are new changes. Or, more ideally, if Greg tries to push to the main branch, GIT is smart enough to know that there is a conflict. So GIT will say something like: Greg, you are trying to push your changes to the main branch but the main branch has some changes you don't have. Please pull first before pushing.
      2. Git does a lot of things to check if there are changes. Take two files for example, A and B. As long as they are two different names, there is no similarity even if they have the same content. If they have the same name, GIT can check it's own copy (usually the latest copy) and cross check the new copy. It checks line by line. If both files have the same content, then nothing changed, if they don't, GIT will show you something called a "diff". A diff is just GIT telling you the difference between each line of code. If line 1 of the file GIT has is different from line 1 of the file Greg is trying to merge, GIT will tell Greg: There's a conflict.
      3. PR has their own rules. Ideally, you as a user that started or opened a PR can choose to notify someone to take a look at it, or you can leave it there until the person comes to check. It's all about notifications, no hard rules. That's not GIT's responsibility, it's GitHub.

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

      @@adebiyial but buddy, here is one thing it wasn't clear to me: "knowing there is a merge conflict from pushing the code and git telling there's new code on github I don't have, is making a pull request a way to avoid dealing with the merge conflict? I mean, if I make a pr then I don't need to bother pulling any changes?

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

      @@srlhyo A pull request isn't going to resolve any conflicts, you still have to do that yourself. The only thing that can happen is you pull and handle the merge locally or force a push and delete any changes that were made, probably not a good thing to do

  • @yatin1370
    @yatin1370 8 หลายเดือนก่อน

    Coming off an Udemy course on the topic, this was a best revision recap. Absolutely the essence, straight to the point!

  • @iconeers
    @iconeers 9 หลายเดือนก่อน

    well to be honest, am impressed by his delivery of the concept in the difference between Git and Github

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

    Nathan, I have a question on this video. At the end of your example, why did you do a Push and not a Pull and Merge?

  • @conceptrat
    @conceptrat 3 ปีที่แล้ว +7

    Just blown away by his ability to write and draw in reverse so fluidly 😸 lol

    • @ntymtsias
      @ntymtsias 3 ปีที่แล้ว +1

      He is not:) it’s just the way video was recorded.

  • @TonyJose9162007
    @TonyJose9162007 3 ปีที่แล้ว +16

    I wonder how you people have matched Hekman's hand movements with the writing in inverse on the screen. I find this technology truly amazing !! I MEAN WOWW!!

    • @AP-eb8hd
      @AP-eb8hd 3 ปีที่แล้ว

      the concept of lightboard works on special glass... used for writing and then mirrors to invert the image.

    • @AP-eb8hd
      @AP-eb8hd 3 ปีที่แล้ว

      Or you can software to reverse.. if its not online real-time streaming

  • @rahulborade7533
    @rahulborade7533 8 หลายเดือนก่อน +1

    This is just simple - to - understand knowledge, Thanks Nathan!

  • @MANISH-Dev
    @MANISH-Dev 4 ปีที่แล้ว +4

    Best Explanation on YT...

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

    Thank you!!! Someone who finally simplifies it! Great job!

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

    Nice and simple explanation Nathan, looking forwards to more.

  • @carsten2600
    @carsten2600 ปีที่แล้ว

    I never understood why ppl called it PR, but now I can understand it, thanks!

  • @596rochak
    @596rochak 4 ปีที่แล้ว +5

    Quick question, could Greg have been able to do the same with a Push request ? When should one do a git Push vs a git pull request ?

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

      Following.

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

      @@dheerajgupta15
      my expirience is that greg and nathan push their branches to the main repo. so that both info is there in gitlab/github.
      and then you create a pull request (so everything is done on the server).
      afterwards you merge the main branch to your local repo, and then push. and create a second pull request on the main repo.
      sounds right?

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

    This is really simple, accurate, and flawless. Thank you so much

  • @jeffnariesokoth8626
    @jeffnariesokoth8626 16 วันที่ผ่านมา

    wow! ive gained a lot of insights from this explanation. I now understand what Kevin stratvert was teaching us with Git

  • @Tooxcade
    @Tooxcade 3 ปีที่แล้ว +5

    Wow, THIS IS AMAZING EXPLANATION. I CAN'T THANK YOU ENOUGH.

  • @TheGloriousRussian
    @TheGloriousRussian 3 ปีที่แล้ว +2

    I'm a little bit confused why for Greg it's called Pull Request but not Push Request isn't he is pushing his changes to the GitHub repository as Nathan did before?

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

    Superb explanation. If could you please give the actual demo, it would be great. Thank you.

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

    Thank you IBM to explain in a easy way. best explication about the git and GitHub without to much verbiage.

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

    I can't stop focusing on how good Nathan can write backwards

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

    So Basically GitLab/GitHub is something like private cloud or AWS / Azure?

  • @Userk2406
    @Userk2406 2 ปีที่แล้ว +3

    Great job Nathan!!!! Seriously brilliant explaination.

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

    Thanks Natham! Truly appreciate the straightforward way you use to explain what otherwise would be a complex subject...
    MY QUESTION: Which, I think you didn't mention is 'why are these platforms called "GIT"? I don't see any related meaning to 'Version Control Systems'. What exactly is the origin of the Acronym?

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

      According to Wikipedia...
      Torvalds sarcastically quipped about the name git (which means "unpleasant person" in British English slang): "I'm an egotistical bastard, and I name all my projects after myself. First 'Linux', now 'git'."
      en.wikipedia.org/wiki/Git#Naming

  • @syedahmad5655
    @syedahmad5655 ปีที่แล้ว

    Thanks. Quick question. How is code in Git repo put together and what is a build process?

  • @shyunuw
    @shyunuw 3 ปีที่แล้ว +2

    This clip is extremely useful. You made an excellent job!

    • @IBMTechnology
      @IBMTechnology  3 ปีที่แล้ว +1

      Thank you! We're glad you found it helpful! 👍

  • @kavon9748
    @kavon9748 3 ปีที่แล้ว +8

    Oh thank you! You are amazing to explain it in such a simple way 🙂

  • @you2tooyou2too
    @you2tooyou2too 3 ปีที่แล้ว +1

    Aside from 'portability', what advantages are there for solitary developers?

    • @adalovelac24
      @adalovelac24 3 ปีที่แล้ว +1

      you can see all the changes that you did in your code over time

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

    Crystal clear explanation. Any one can understand it. Nice.

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

    Your videos are very useful for me.
    But, allow me to add one note.
    You write the notes in two colours, one is bright and clear for me. While I have a problem with the other colour.
    Thanks again and I am sorry for the out of subject note.

  • @jonnybritton2540
    @jonnybritton2540 3 ปีที่แล้ว +5

    How long did it take you to learn how to write inside out and back to front at the same time?🤔

    • @OhAnd
      @OhAnd 3 ปีที่แล้ว +2

      he probably just flipped the footage lol

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

      I also noticed that n I can do it too

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

      @@OhAnd idk why I didn't think of this. I was hella impressed

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

    I wish i could like this multiple times

  • @johannes.sbw-media
    @johannes.sbw-media 3 ปีที่แล้ว +3

    If Nathan and Greg work on different branches there will be no merge conflict

  • @alphabeta1521
    @alphabeta1521 3 ปีที่แล้ว +1

    An excellent video. Learnt a lot. Thanks. But.... please tell me how do you make this type of videos like writing on a glass...?

    • @IBMTechnology
      @IBMTechnology  3 ปีที่แล้ว +1

      Hey! Glad you enjoyed the video! 🙂
      As for the making of, we explain it all in our "Community" section 👉 ibm.co/37r6z8h 🧐

  • @kalyanb2002
    @kalyanb2002 ปีที่แล้ว

    I love the content shared by IBM cloud. The tit bit video's make the concept simple to understand . Thanks to Nathan and all greats who help spread knowledge.

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

    You got me at let’s git started !!

  • @josephthecreator
    @josephthecreator 3 ปีที่แล้ว +5

    Thank you for keeping this simple and easy to understand for new comers!

  • @kevinedmond6507
    @kevinedmond6507 ปีที่แล้ว

    Hello good morning Nathan! I have watched your video regarding GIT, at present, I am a student of Data Analytics, can I use GIT as my repository for my studies? Thanks

  • @felipe.hooper
    @felipe.hooper 2 หลายเดือนก่อน

    The last command is "pull request" not a "push request"?

  • @NaveenKumar1611-m1v
    @NaveenKumar1611-m1v 9 หลายเดือนก่อน

    Thankyou so much for this clarity with clear example.

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

    CAN We hamper the Main code by deleting some commands.....or we can just add our new commands in main code ??

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

    I have learnt so much from this IBM series, thank you so much. Great explanations for so many topics

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

    How GIT and GITHUB do instruction in the processor?

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

    Wooow explains dope crystal clear... Understandable 💯

  • @88gurlygurl
    @88gurlygurl 3 ปีที่แล้ว +2

    Nice - that was a pretty good explanation.

  • @lucid1963
    @lucid1963 ปีที่แล้ว

    Excellent explanation. Very easy to understand.Thank you for the wonderful presentation also.

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

    Thanks IBM for the video. I have a better understanding.👍🏼

  • @pragatibansal9492
    @pragatibansal9492 3 ปีที่แล้ว +1

    Great video😁.. I have a doubt does grey have to do all its work again after pulling the updated code

    • @username-1043
      @username-1043 3 ปีที่แล้ว +1

      No. He just has to resolve merge conflicts which will be visible on Greys' code. He can keep all , some and none part of the pulled code.

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

      @@username-1043 Also due note, that just because you make a Pull Request (PR) doesnt mean it will get accepted. It can be denied for any reason.
      It will get denied by whomever is in charge of overseeing the github project.
      I say this, because some people have the sense of belief that they can just put up any code they want. which is not true. It goes through an approval process first.

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

    Wait how are you writing in reverse so quick?

  • @hlebuska9434
    @hlebuska9434 ปีที่แล้ว

    Amazing, simple explanation. Thank you!

  • @boldschool6308
    @boldschool6308 3 ปีที่แล้ว +1

    Deserves a like for sure

  • @lyeejiun99
    @lyeejiun99 3 ปีที่แล้ว +2

    Thank you Nathan, this video is really helpful for me!!!

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

    thanks .. i know have vids i can share to friends an family to help essplain what "we do". and why its so great..

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

    So it’s like Google Docs but for your Code?

  • @varunaws4432
    @varunaws4432 3 ปีที่แล้ว +2

    really Awesome... superb explination on Git and Github

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

    Thank you so much man for simply explaining this

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

    why do they call it a pull request when you're actually trying to push code inc. merge conflict resolution changes. Shouldn't it be a push request at this point?

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

      I've always thought of it from the viewpoint of the reviewer - you're asking them to pull your proposed changes into their work stream. If they accept your updates, your code get pushed into the main branch.

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

    This is very much to the point and easy to understand! Thank you Nathan!

  • @thanurarukshan6696
    @thanurarukshan6696 ปีที่แล้ว

    Right into the point, Love this😍

  • @bayesian7404
    @bayesian7404 3 ปีที่แล้ว +1

    Nathan,
    Great job. Plus I also bluegrass so that gets u another star. In comments Singh Noah asked a critical. Read Anton T wrote a very informative reply. While I do not use IBM Cloud, they do provide excellent tutorials.

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

    Das Quietschen der Stifte bringt mich um, aber tolles Video!

  • @jennwng
    @jennwng 3 ปีที่แล้ว +1

    Great illustration!!! Thank you!!!

  • @shrutijadhav552
    @shrutijadhav552 3 ปีที่แล้ว +1

    Great explanation

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

    That was super helpful. Thanks man!!!

  • @xinyujiao4464
    @xinyujiao4464 3 ปีที่แล้ว +13

    When Nathan changed the main branch, it was called "push". Why then, when greg wants to make changes, it is called a "pull request"?

    • @anton_t
      @anton_t 3 ปีที่แล้ว +15

      You clone a repo only once, in the very beginning of your work. Both Nathan and Craig cloned the Repo. Then Nathan pushed his changes, but basically he was supposed to pull and merge first, to make sure Craig hadn't already pushed his changes first. So in GIT you do the CLONE action only once - that's how you download the whole huge repository on your local machine. And then whenever you need to make a change, you first PULL the current version (and when you do that only the changes are downloaded, not the whole repository). Then you commit your own change to the branch you have and then you PUSH it to the server/cloud. And until you have finished your PUSH action the system is locked for all the other developers - they cannot commit or push anything until you're done. As soon as you are done pushing (lol) the system gets unlocked again and someone else can do his/her own PULL-COMMIT-PUSH.

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

      Submitting a pull request means, Greg is requesting others to pull and give a response (approval or denial) on the new home screen having both Bluegrass and Rock features.

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

      @@anton_t thank you for response this really clears things up for me!

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

      A “pull request“ asks a repo/project to “pull“ changes you've made on your cloned repo into theirs and “merge“ them. This is different to a pull which does a “fetch“ and either “merge“ or “rebase“ from a repo.

  • @natek3954
    @natek3954 3 ปีที่แล้ว +1

    That's are super helpful to visualize what's going on! Thank you!

    • @IBMTechnology
      @IBMTechnology  3 ปีที่แล้ว +1

      Glad you liked our video format, Nate, thanks for watching! You can subscribe to our channel for more videos like this one.😉

  • @ETI-edu
    @ETI-edu 8 หลายเดือนก่อน

    Great explanation Thanks !

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

    Perfect explanation. crystal clear.

  • @SilentSolution
    @SilentSolution 3 ปีที่แล้ว +1

    Thanks for your information Sir

  • @laaven
    @laaven ปีที่แล้ว

    Well this video deff got me intrested in learning how to use it.

  • @Filip-ci3ng
    @Filip-ci3ng 3 ปีที่แล้ว

    How’s this possible to work unless prod files are being temporarily locked for changes ?

  • @ipstacks11
    @ipstacks11 19 วันที่ผ่านมา

    You should note that Linus wrote git in a weekend and some of the reasons are interesting, like the bitkeeper drama with reverse engineering their stuff and the need for speed that is probably the main driver to write it.

  • @raufmasoumi
    @raufmasoumi 3 ปีที่แล้ว +1

    thank you so much! the explanation is too good and simple.

  • @Tony25287
    @Tony25287 10 หลายเดือนก่อน

    Thank you. A great video, as always!

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

    Thank you, I am Indonesian you was give me new knowledge.

  • @RahulGupta-ly2uu
    @RahulGupta-ly2uu 2 ปีที่แล้ว

    still i have some doubts on PR and Pull and merge. Can someone pin some useful links.

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

    Thanks Nathan, So can I use GitHub to create educational audio and written material for the youth and public in general. As an aspiring book & article's writer etc, Bible teacher and motivational speaker, how can Git help increase my viewer's in number in order for them to acquire this knowledge? Thank you again.

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

    Very well made videos...please share more such content.

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

    I need a glass white board, does IBM sell these?

  • @hidayahBasir-p3u
    @hidayahBasir-p3u ปีที่แล้ว

    brilliant explanation!

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

    Simple and awesome explanation ☺️

  • @sujalthakkar2118
    @sujalthakkar2118 9 วันที่ผ่านมา

    The sound of the pen scratching the glass is so shivering.

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

    Very well done!! Thank you Nathan

  • @rennyjesusbilellapena1859
    @rennyjesusbilellapena1859 3 ปีที่แล้ว +2

    The best explanation about git and github, that I have been able to get, now my next question, in many employment pages they request experience in handling git, but I have developed myself in github and desktop github, which allows me to make local changes, that counts as experience in git?

    • @IBMTechnology
      @IBMTechnology  3 ปีที่แล้ว +1

      Hey Renny! We’re glad you found the video helpful! Yes, Github, GitLab, and other services use git technology - so it certainly sounds like you have experience with git. 👍

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

    I have a question.. why does Greg have to make a pull request and Nathan doesn't have to make a PR?

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

    Explicit and well explained! Thanks.

  • @brotendo
    @brotendo 3 ปีที่แล้ว +1

    Is ability to write mirrored is amazing

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

    he explained so nicely

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

    Nice!... Excellent teaching!

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

    Crystal Clear. Great Job.

  • @MDHOSSAIN-gj5ve
    @MDHOSSAIN-gj5ve 3 ปีที่แล้ว

    Excellent explanation. Want more video like this.

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

    Thank you Nathan . Good job :)

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

    Did he just write all the text in reverse? Thanks!