Before setting up a git upstream branch, we must have a cloned GitHub repository. Whenever we want to issue commands like git fetch or git pull without providing any argument, we are fetching or pulling the data from the upstream branch (that we set using the git set upstream command).
A git upstream branch is very closely related to a remote branch as we use the upstream branch that is used to track the remote repository by our local repository.