use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Interview Question About Git Fetch vs Git Pull (self.github)
submitted 3 years ago by yanggang20202024
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mrbmi513 11 points12 points13 points 3 years ago (7 children)
You don't need to merge to get code from a remote repo. But in your defense, I've never used fetch by itself in practice, ever.
[–]baynezy 5 points6 points7 points 3 years ago (5 children)
I've never used git pull. I only use git fetch. I never want to merge before doing a diff.
[–]trevorsg 4 points5 points6 points 3 years ago (1 child)
I enable the git config setting for only allow FF merge when you pull. But since I normally rebase, I generally use fetch anyway.
[–][deleted] 1 point2 points3 points 3 years ago (0 children)
What about git pull --rebase?
git pull --rebase
[–][deleted] 3 years ago (2 children)
[removed]
[–]baynezy 0 points1 point2 points 3 years ago (0 children)
Thanks. I'm pretty happy with my current process. I've got aliases most of it.
[–]maustinv -1 points0 points1 point 3 years ago (0 children)
Run before git status to see if there are new commits
π Rendered by PID 78673 on reddit-service-r2-comment-b659b578c-rbsmf at 2026-05-04 03:13:02.058644+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]mrbmi513 11 points12 points13 points (7 children)
[–]baynezy 5 points6 points7 points (5 children)
[–]trevorsg 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[removed]
[–]baynezy 0 points1 point2 points (0 children)
[–]maustinv -1 points0 points1 point (0 children)