Mihail Feraru
Mihail Feraru

Reputation: 173

Update all branches in git

I forked a repo: https://github.com/CruceGameDevel/CruceGame and I cloned my copy to local machine:

$ git clone https://github.com/MihaiPro/CruceGame

If I run:

$ git branch
* master

Why it show only master branch? I tried git remote update and git fetch --all but doesn't work. What I need to do? Maybe I did something wrong, so please give me correct steps of cloning a forked repo. Thanks!

Upvotes: 0

Views: 47

Answers (1)

Messa
Messa

Reputation: 25201

Try

git branch -a

Remote-tracking branches are not listed in git branch without -a.

Upvotes: 2

Related Questions