How Git Works: Explained in 4 Minutes

Поділитися
Вставка
  • Опубліковано 24 лис 2024
  • Get a Free System Design PDF with 158 pages by subscribing to our weekly newsletter: bytebytego.ck....
    Git MERGE vs REBASE: Everything You Need to Know
    : • Git MERGE vs REBASE: E...
    Animation tools: Adobe Illustrator and After Effects.
    Checkout our bestselling System Design Interview books:
    Volume 1: amzn.to/3Ou7gkd
    Volume 2: amzn.to/3HqGozy
    The digital version of System Design Interview books: bit.ly/3mlDSk9
    ABOUT US:
    Covering topics and trends in large-scale system design, from the authors of the best-selling System Design Interview series.

КОМЕНТАРІ • 101

  • @kartikpodugu
    @kartikpodugu 11 місяців тому +89

    merge and rebase always scare me.
    but after so many years of using git and version control systems, i can say that, understanding the 4 places where code stays is a very important point to understand and clearly remember which command to use when. very good video

  • @sin78000000
    @sin78000000 11 місяців тому +35

    One of the best videos I have ever seen which explained git working in such an efficient and concise way.

  • @pavankumard5276
    @pavankumard5276 Рік тому +24

    Best video to understand the CONCEPT of how git works and not just the commands

  • @bigspoonhands
    @bigspoonhands 11 місяців тому +7

    Best git explanation I've seen or heard anywhere, and by a long way. This is all that is needed by anyone coming from SVN or CVS or some other classic network based version control system to git

  • @jingwang2111
    @jingwang2111 8 місяців тому +2

    Been using Git for more than a year and this video still brings much clarificaiton...

  • @seim111
    @seim111 4 місяці тому +1

    I have watched a lot of videos about git basic commands, read articles and guides. Nothing has helped me as much as this video here. Thank you Sir.

  • @guiller2371
    @guiller2371 11 місяців тому +3

    This is the best git explanation I've seen.

  • @AK-vx4dy
    @AK-vx4dy Рік тому +21

    You concentrated so much knowledge, explained it shortly and clearly... for free... enternal respect and glory !

  • @joseville
    @joseville 3 місяці тому

    Great video. To understand git even more, I would recommend learning about the different types of branches
    Branches on your maching
    - local,non-tracking, e.g. foo
    - local,tracking, e.g. bar
    - remote-tracking e.g. origin/bar
    Branches on remote machine
    - a branch on the remote repo, e.g. origin bar

  • @stevenkim6869
    @stevenkim6869 3 місяці тому

    these videos are awesome ... anyone can easily become an expert using these ... no fuss, clear-cut explanations ...

  • @ourship
    @ourship 5 місяців тому

    I've been working officially for 3 months now and still don't know a lot of important concepts of Git, thanks to this video I understand a few things.

  • @AlexbongoKurban
    @AlexbongoKurban Рік тому +168

    hours of udemy courses wasted when a simple video of 4 min explained me the concepts 100 times better...

    • @theoceandragongaming
      @theoceandragongaming Рік тому +31

      Not at all. You pick that up quickly because you did a udemy course and already had your concepts cleared. This video helps you to brush up your skill and confirms your understanding. If you are professionally working then better you follow udemy or some professional courses. It can be his courses as well, but definately not a 5 mnt video.

    • @ildar5184
      @ildar5184 11 місяців тому +7

      @@theoceandragongamingExactly. I feel like these 5 min videos are intended for professionals to refresh basic concepts in their memory, as a cheatsheet. A novice who didn't use git before will fell completely lost after this video.

    • @stefano_schmidt
      @stefano_schmidt 11 місяців тому +6

      There is always a guy who writes such a pointless thing under any short-explained videos. Always...

    • @LuvxJacqu4li8e
      @LuvxJacqu4li8e 10 місяців тому

      Udemy is a piece of sh xxx t. Wasted a ton of money on foreigners who can't speak English and only for the videos to be old and blurry later on
      It's a scam.

    • @adrivanrensburg78
      @adrivanrensburg78 2 місяці тому +1

      I agree, as a non technical person this video is brilliant

  • @GfoxSim
    @GfoxSim 4 місяці тому +12

    So in simplest terms, Git is for collaborating on a project remotely, where we can track and make changes easily, get latest updates on our codebase and also upload our changes to the main codebase. It's like working on a project but from different locations around the world? To me cloning is downloading, staging is checkpointing, committing is saving, pushing is uploading. Branching is working in isolation to avoid messing up the main codebase, pulling is updating my local code with the latest changes, and forking is copying the whole repository with its branches.

    • @alfonsobenavidesiglesias5090
      @alfonsobenavidesiglesias5090 Місяць тому +2

      I think your comment is key for beginners; most of the confusion about Git is the lack of videos like this one and not explaining the jargon/definitions associated to Git. The worst thing you can do when explaining is assuming that the words you are using means the right thing to the listener

  • @deepaksingh9318
    @deepaksingh9318 11 місяців тому +3

    Exactly what I had been look for 😁..a visualization of concepts is what i had been searching so far..

  • @maxwell342
    @maxwell342 4 місяці тому +1

    yeah, very good animation in a very clear manner. It is an idea for beginners but gives insight for deep understanding for the learner who is on the process of learning who had a basic understanding

  • @Jarcik01
    @Jarcik01 6 місяців тому

    Thank you very much! Finally I get the difference between working directory and local repository. Thank you!!! Have a great day!

  • @allenbro9900
    @allenbro9900 3 місяці тому

    Incredibly high quality. so good i had to comment to help you out with the youtube algorithm! love the intro you let us know what you do but don't go on and on, really short and too the point you built credibility fast but didn't ramble on like most intros that people skip anyway! really well put i can tell you put a lot of work into this

  • @VictoriaJitoboh
    @VictoriaJitoboh 6 місяців тому +1

    Thank you for making git very simple to understand

  • @user-ex2yt1pl6u
    @user-ex2yt1pl6u Рік тому +10

    The concept behind Git is easy to digest. The bullshit starts when you mess up your setup; now you are stuck, sitting at your desktop, head full of confusion, waiting on a more experienced developer to come and save you. Lol.

  • @franciscoballesteros3046
    @franciscoballesteros3046 3 місяці тому

    This was the best way to teach this, thank you!

  • @silviapietropoli8751
    @silviapietropoli8751 11 місяців тому +3

    Simple and clear, thanks!

  • @Pilar-p6c
    @Pilar-p6c 4 місяці тому +1

    Best video with a excellent explication, thanks !!

  • @GungaGaLunga777
    @GungaGaLunga777 2 місяці тому

    the visuals are beautiful. thank you.

  • @joeylantis22
    @joeylantis22 7 місяців тому

    Love this, just wanted a concept of how git *works* and how to use it on the command line.

  • @RivaanDesai
    @RivaanDesai 4 місяці тому

    Tried to learn git from Fireship video but couldn't understand. This video helped with understanding.

  • @luciannamendonca8514
    @luciannamendonca8514 8 місяців тому

    Excellent explanation ! Thank you!!

  • @TheHowingFantods
    @TheHowingFantods 2 місяці тому

    I needed this. THANK YOU.

  • @kevinignas
    @kevinignas Рік тому +5

    Hello sir, there's a typo on your video thumbnail saying "reomte". As usual, I love your video so much, very clear and on point. Still wonder how you could manage to explain things very clearly

  • @TheBlueFluidBreathe
    @TheBlueFluidBreathe Місяць тому

    Wonderful explanation

  • @memedance3535
    @memedance3535 3 місяці тому

    Amazing job for learning

  • @Jitendrapawar-vr4vl
    @Jitendrapawar-vr4vl 4 місяці тому

    Explained git in 4 mins wonderful

  • @mat5844
    @mat5844 4 місяці тому

    there might be too many animation /transitions going on for some folks like me. nonetheless, amazing content

  • @sathyar7078
    @sathyar7078 Місяць тому

    very good useful video

  • @kalvakolusubhash4010
    @kalvakolusubhash4010 Рік тому +5

    Please explain the git stash concept also visually to avoid the conflicts

    • @larryd9577
      @larryd9577 Рік тому +1

      Git stash creates snapshots, very similiar to commits. When the base for the snapshot changes opposing to the changes in the stash a conflict is unavoidable. Learn to resolve merge conflicts, then you can resolve the conflicts when applying stashes.

  • @ancientsocrates895
    @ancientsocrates895 2 місяці тому

    Thx man!

  • @hynesie11
    @hynesie11 7 місяців тому

    Brilliant. Thank you.

  • @avialexandru3071
    @avialexandru3071 8 місяців тому

    Good video

  • @abhinandanraj5660
    @abhinandanraj5660 11 місяців тому

    Thank you so much!!

  • @heliocampos1741
    @heliocampos1741 11 місяців тому +1

    Reomote -> remote

  • @itsJDarts
    @itsJDarts 8 місяців тому

    subscribed

  • @redmi3shari607
    @redmi3shari607 7 місяців тому

    Nice info... #HariKrishnaSahu

  • @longgahn4486
    @longgahn4486 25 днів тому

    So git checkout and git switch are the same? You can use either one?

  • @joseville
    @joseville 3 місяці тому

    In 1:56 which one corresponds to the index? Staging area or local repo?

  • @michaellara695
    @michaellara695 28 днів тому

  • @joseville
    @joseville 3 місяці тому

    4:17 Is that VS Code? Which shell are you using in that Terminal?

  • @Lammot
    @Lammot Рік тому +7

    So, which hood did you look under?

    • @arunpandian7
      @arunpandian7 Рік тому +4

      Haha, same. I had high expectations from him.

    • @gradientO
      @gradientO Рік тому +2

      ​@@arunpandian7you shouldn't be surprised. His previous videos are overviews too

    • @ByteByteGo
      @ByteByteGo  Рік тому +15

      Fair point. Update the title to "How Git Works: Explained in 4 Minutes"

    • @gus473
      @gus473 Рік тому +2

      ​@@ByteByteGoIt's a tough audience today! 😅 Thanks for these videos! And it's good to see that the answer to "the animation question" is now right at the top of the description! Best wishes! 😎✌️

    • @Steelrat1994
      @Steelrat1994 Рік тому

      @@gus473 well, when Sahn promises to look under the hood, people expect a look under the hood, not a 4 minute introduction level video. Especially so when it's a video about a tool that the majority of his audience have been using for years(like Git or RDBMS).

  • @GoldsmithCyril
    @GoldsmithCyril 2 місяці тому

    870 Franecki Circles

  • @ChaosChroniclesTV
    @ChaosChroniclesTV 3 місяці тому

    what's the difference between localworkingdir and local repository?

  • @MarcellusLeila-x3l
    @MarcellusLeila-x3l 2 місяці тому

    Leffler Branch

  • @arpitsisodia1428
    @arpitsisodia1428 11 днів тому

    Understood after 13 years .

  • @DarrellStebe-k8h
    @DarrellStebe-k8h Місяць тому

    Waters Court

  • @PoeRosemary-x9b
    @PoeRosemary-x9b 2 місяці тому

    Arthur Prairie

  • @AndreasToth
    @AndreasToth 10 місяців тому +1

    I like the flow and the pace but the occasional misalignments between the spoken words and the visuals can be distracting and jarring at times and hinders learning. Take, for example, the mention of switching between branches using git switch, yet the visuals are showing git merge.

    • @fanxxai
      @fanxxai 8 місяців тому

      Rn I’m at the same timestamp 2:55 in the video n realised the strange issue.

  • @DK-ox7ze
    @DK-ox7ze Рік тому

    At 3:40, under first diagram (Git Merge) if the head is at F, and you do git log then will it show commits C, B, A or commits E, D?

  • @MomForgotToNameMe
    @MomForgotToNameMe 8 місяців тому

    Can anyone tell me what terminal is he using? The one that shows the Git current branch and stauts?

  • @DeborahJohnson-n2j
    @DeborahJohnson-n2j Місяць тому

    Erling Bypass

  • @JosephinaBessinger-c5o
    @JosephinaBessinger-c5o 2 місяці тому

    Wilderman Roads

  • @shreshthverma5877
    @shreshthverma5877 8 місяців тому

    How do you animate your videos?

  • @nedim-at
    @nedim-at 3 місяці тому

    How can one create such graphics & animations?
    Preferably FOSS :)

  • @DavidKey-t1b
    @DavidKey-t1b Місяць тому

    Rice Glen

  • @Anonymous-zi5wr
    @Anonymous-zi5wr 10 місяців тому

    What software do you use to demonstrate these items?

    • @abrasionthermals9172
      @abrasionthermals9172 10 місяців тому

      Oh boy that's a long learning curve. You need to develop ability to think like a graphics designer. After that I think they used Adobe After Effects.

  • @emmanuelmora4472
    @emmanuelmora4472 7 годин тому

    I still do not understand the different of Local repo and working directory.
    maybe someone did and can explain me?

  • @TheBacker007
    @TheBacker007 7 місяців тому

    👍

  • @LarryDavis-s2l
    @LarryDavis-s2l 2 місяці тому

    Cornell Fords

  • @Elosbyuri
    @Elosbyuri 3 місяці тому

    how to download it ?

  • @EverydayRoadster
    @EverydayRoadster Рік тому +5

    Most confusion with git comes from the non-visible difference between the local repository and the working directory. This video is no different. At 2:35 it describes git pull from remote repository to local repository, but the arrow points into the working directory.

    • @r5sec5cyl
      @r5sec5cyl Рік тому +2

      He immediately explains that at 2:45 accurately and sufficiently.

  • @srinivaskasiriveni2890
    @srinivaskasiriveni2890 Рік тому

  • @RobertDelrosario-n7c
    @RobertDelrosario-n7c 2 місяці тому

    Deborah Isle

  • @CasandraRomero-l7f
    @CasandraRomero-l7f 2 місяці тому

    Schultz Port

  • @ИгорьТ-х6м
    @ИгорьТ-х6м 2 місяці тому +1

    This is not how git works but "what is git". Internals are not explained, so still no clue how it works)

    • @rv7591
      @rv7591 Місяць тому

      They're just different layers of abstraction. You can do the same thing with for example "how a car works". Depending on the audience the speech will be very different.

  • @RobbinReese-x6x
    @RobbinReese-x6x 2 місяці тому

    Giles Pines

  • @Anonymous-zi5wr
    @Anonymous-zi5wr 10 місяців тому

    [02:44]

  • @oopss794
    @oopss794 Рік тому

    under the hood ?

  • @sahil478
    @sahil478 6 місяців тому +1

    Very very confusing

  • @MotleyMagee-o4s
    @MotleyMagee-o4s Місяць тому

    Young Kevin Jones Carol Taylor Melissa

  • @andyhall7032
    @andyhall7032 Рік тому

    git blame...thank me later.

  • @jalalle1995
    @jalalle1995 Рік тому

    nothing hood about that, that's just the git api

  • @andriichornyi9143
    @andriichornyi9143 11 місяців тому

    You couldn’t really explain how git works in 4 minutes.

  • @Gabriel-ql7eb
    @Gabriel-ql7eb 3 місяці тому

    worst explaining, you start your sentence loudly and end it silently, wtf is that

  • @LambArcher
    @LambArcher Місяць тому

    875 Willms Key

  • @heliocampos1741
    @heliocampos1741 11 місяців тому +2

    Reomte -> remote