git fetch upstream doesn't work

I’m trying to use git fetch upstream master to get the latest commit from another user’s repository. But unfortunately that doesn’t work. I have also tried git fetch upstream.

What does work is git pull upstream master, but I don’t want to use that all the time, because that will always automatically perform a merge.

  • How git is pushing tag changes and fast forward merges?
  • What's so great about git?
  • git p4 submit from a bare repository?
  • What does a hunk mean in relation to pushes on sourcetree
  • Git: having problems trying to keep a clean history tree
  • How to use git kraken for a force push
  • This is the output that I get when I execute git fetch upstream master:

    git fetch upstream master
    From https://github.com/jchun/nodeSite
     * branch            master     -> FETCH_HEAD
    

    And here are my remotes:

    git remote -v
    origin git@github.com:superzaky/nodeSite.git (fetch)
    origin git@github.com:superzaky/nodeSite.git (push)
    upstream       https://github.com/jchun/nodeSite.git (fetch)
    upstream       https://github.com/jchun/nodeSite.git (push)
    

  • How to pull and check-out remote Git repository
  • What can/should I do about this git gc error? (rm: cannot unlink pack Permission denied)
  • Is it possible to prevent git from immediately removing the reflog of deleted branches?
  • Git local mirror and repository
  • How can I fetch git objects using the smart protocol (raw) over http?
  • Storing a git commits to a text-file
  • One Solution collect form web for “git fetch upstream doesn't work”

    The fetch did work, but to see the result, you should do a:

    git log --oneline --all --graph --decorate --branches
    

    You would see the upstream branches (including the upstream/master)

    You can also check the latest SHA1 fetched with:

    git branch -avv
    

    The git pull upstream master didn’t repeat the fetch part (since it was already done), but merge as well upstream/master to master.

    Git Baby is a git and github fan, let's start git clone.