mfaani
mfaani

Reputation: 36287

Why isn't git's remotes directory not showing all the fetched branches?

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

Answers (1)

matt
matt

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

Related Questions