Not able to see remote branches in local

213 Views Asked by At

I have tried all the possible ways

git fetch origin
git fetch --all 

But I am not able to see any of the remote branches in my local.

C:\Jboss_WP_TN_MAVEN\tdhs_ebms_wp>git branch -r
  origin/feature/tdhs_ebms_wp_feature
1

There are 1 best solutions below

2
On

git remote -v should show you if your remote is properly set. If it isn't, do: git remote add origin [email protected]:someUser/someRepo.git

Follow that with a git fetch so your client is aware of remote changes.

git branch --remote should list all the remote branches known by your client. To list branches, you shouldn't append a branch name to your command.