Git PULL vs FETCH

Поделиться
HTML-код
  • Опубликовано: 24 дек 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. RUclips 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 Месяц назад

    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.

  • @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.

  • @armin4146
    @armin4146 18 дней назад

    Thank you

  • @CalmestTrader
    @CalmestTrader 7 дней назад

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

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

    thanks for the video!

  • @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!

  • @linbynd
    @linbynd 7 месяцев назад

    perfect !!!

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

    Very useful :D

  • @_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).

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

    GIT GOAT. Thanks

  • @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  3 месяца назад +1

      Sorry about that. The video I reference is this one: ruclips.net/video/zOnwgxiC0OA/видео.html

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

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

  • @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!

  • @devcallum
    @devcallum 7 месяцев назад

    Not first but second

    • @themoderncoder
      @themoderncoder  7 месяцев назад

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