Git fetch vs git pull: how did you develop your preference for one or the other? (If you use both, just pick the one you use more.) Do you just roll with the default from how you learned git, or did you learn both and make a conscious choice or change?

  • I use fetch and have learned both (8)
  • I use pull and have learned both (4)
  • I use fetch and just learned it that way (0)
  • I use pull and just learned it that way (4)
1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Darius Kazemi

@glyph I use fetch, merge, and also pull sometimes (with an explicit upstream & branch specified, never ever "git pull" on its own).

At first I learned to just do "git pull" and was always fucking up my work. Then I sat down with someone more experienced than me who taught me the flow I use now; it became clear quickly to me that being specific about what I do in atomic steps is just a safer way for me to interact with git.

1
8mo
Replies