Reputation: 36287
I just cloned Alamofire repo.
On the repo it has 8 branches.
However when I go into my Alamofire/.git/refs/remotes/origin
directory I only see HEAD.
Shouldn’t I be seeing all 8 branches? I already did a git fetch --all
FWIW I tried doing git checkout hotfix
and it just worked. Implying that the branch has already been fetched. If that's the case then again I expect the branch to exist within the Alamofire/.git/refs/remotes/origin
directory.
Upvotes: 0
Views: 38
Reputation: 535202
I expect the branch to exist within the Alamofire/.git/refs/remotes/origin directory
Your expectations are wrong. Try git branch --list --all
. Now you will "see" the branches.
Upvotes: 1