First my terminology: "upstream" is the original apache repo (on github). "origin" is my fork of the apache repo (also on github).
After executing the following:
git remote update
git fetch
I see the apache repo references updated to include two new branches.
[cloudera@localhost delta]$ git remote update
Fetching origin
Fetching upstream
remote: Counting objects: 58, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 58 (delta 6), reused 48 (delta 6)
Unpacking objects: 100% (58/58), done.
From https://github.com/apache/spark
7e4a0e1..b060014 branch-0.9 -> upstream/branch-0.9
1a0a2f8..952e0d6 branch-1.0 -> upstream/branch-1.0
* [new branch] branch-1.1 -> upstream/branch-1.1
Note the [new branch] created from the upstream. I did not have to do a "git branch -b". But what about the origin new branches (of which there are several)? Why the difference in behavior here?
None of the new branches on my local repo (created in a separate local clone) were fetch'ed/created in this clone.
So how to fetch the new branches in origin ?
UPDATE Based on suggestion by @VonC I did
git branch -avvv
The output DOES show the origin branches;
delta
* master
master
remotes/origin/HEAD
remotes/origin/branch-0.5
..
remotes/origin/delta
remotes/origin/docs st
remotes/origin/strlen
remotes/upstream/branch-0.5
..
remotes/upstream/branch-1.1
remotes/upstream/master
..
So my confusion then looks to be more of a basic/beginner one: why did
$ git branch
delta
* master
Does not show for eampe remotes/origin/docs.. I guess I need to read up on the git branch command more here.
Another update @AD7Six has explained about further in his answer about the git branch vs git branch -r