Git PULL vs FETCH

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 37

  • @shoooozzzz
    @shoooozzzz 7 місяців тому +25

    You are the git goat with your visualizations.

  • @daymenpasick7825
    @daymenpasick7825 6 місяців тому +8

    My guy at the very beginning when you described git pull as being a combination of fetch and merge...it already instantly clicked for me xD thank you!

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

      Yeah, I use Visual Studio and it hides this detail from you. Good video.

  • @CentreMetre
    @CentreMetre 7 місяців тому +8

    I first seen your merge vs rebase a couple days ago and it really helped explain. UA-cam seemed to agree and recommended me this straight after uploading (im not subscribed), and again really helpful video. Gonna have to check out more!

    • @themoderncoder
      @themoderncoder  7 місяців тому +2

      Good to hear. These videos end up taking way longer than I think to film and animate, so it really makes me feel like it’s worth it when I get comments like yours.

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

      @@themoderncoder the time spent is worth it. You are creating a better world for software devs

  • @mehdizahedi2810
    @mehdizahedi2810 6 місяців тому +2

    Fantastic explanation, resolved all my confusion about merging. Thanks

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

    thanks for your videos :) helps alot! i use git for some time now (private and in my company) and sometimes we have some issues with the git stuff, and your videos really help :) keep on the good work

  • @bilalnaseem94
    @bilalnaseem94 5 місяців тому +1

    Amazing man! Please don't stop making videos like this!

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

      Appreciate it my guy! I’m still grinding - these deep dive vids take an ungodly amount of time so it’s hard to get even one out every month or two. But I’m committed to it.

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

    Great video!! I was asked this in a interview!! I have been using git for years without this knowledge Thank you!!

  • @hrahman3123
    @hrahman3123 7 місяців тому +1

    You always have great videos. Keep it up!

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

    This is a clear explanation. Very good.

  • @CalmestTrader
    @CalmestTrader 6 днів тому

    What tool do you make your visualizations with? They are very good

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

    Thank you for your great tutorials. I'm curious will you make a video about 'git submodule'?

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

      I can certainly add it to the roadmap!

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

    This video is awesome! Sadly I am not able to see the difference between git pull (without option) and git pull --ff. Both strategies seems to merge if it's not possibile to do a fast-forward-merge. If git pull (without option) is basically git fetch + git merge, what is git pull-ff? It looks the same to me. What am I missing? thanks.

    • @themoderncoder
      @themoderncoder  Місяць тому +1

      "git pull" is always "git fetch" followed by "git merge" behind the scenes regardless of what merging option is specified. The "--ff" option is simply forwarded to "git merge" behind the scenes. Since "--ff" is the default merging strategy, if no command line flag is provided, there is no difference between "git pull" and "git pull --ff" unless you specify an alternative default (like in 5:47 in the video).

  • @armin4146
    @armin4146 17 днів тому

    Thank you

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

    Great video :)

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

    Great class! Thank you!🙏🏼

  • @chrism9017
    @chrism9017 7 місяців тому +1

    1:00-1:05 "... my local main branch hasn't changed". Light bulb on.

  • @dev-vf5fm
    @dev-vf5fm 3 місяці тому

    where's the dedicated video for side effect of git pull --rebase? no link appeared in the video

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

      Sorry about that. The video I reference is this one: ua-cam.com/video/zOnwgxiC0OA/v-deo.html

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

    perfect !!!

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

    thanks for the video!

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

    GIT GOAT. Thanks

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

    Very useful :D

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

    Mind sharing that terminal theme?

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

      Sure. Below is the relevant part of my ~/.zshrc, and the font used is Iosevka:
      # Load version control information
      autoload -Uz vcs_info
      precmd() { vcs_info }
      # Format the vcs_info_msg_0_ variable
      zstyle ':vcs_info:git:*' formats '%F{215} %b%f'
      # Format the prompt
      setopt PROMPT_SUBST
      PS1=$'%F{69}%n%f on %F{cyan}%~%f ${vcs_info_msg_0_}
      \Uf0da '

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

      @@themoderncoder Thanks!

  • @leaks1965
    @leaks1965 3 місяці тому +3

    Exit vim, with save ZZ, exit vim without save ZQ

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

    Not first but second

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

      Let’s go! I never get “first” or “second” comments on my vids!!