Copy edited.
Source Link
Peter Mortensen
  • 29k
  • 21
  • 96
  • 124

git branch -r says the object name is invalid, because that branch name isn't in git'sGit's local branch list. Update your local branch list from origin with:

git remote update

git remote update

andAnd then try checking out your remote branch again.

This worked for me.

I believe git fetch pulls in all remote branches, which is not what the original poster wanted.

git branch -r says the object name is invalid because that branch name isn't in git's local branch list. Update your local branch list from origin with

git remote update

and then try checking out your remote branch again.

This worked for me.

I believe git fetch pulls in all remote branches, which is not what the original poster wanted.

git branch -r says the object name is invalid, because that branch name isn't in Git's local branch list. Update your local branch list from origin with:

git remote update

And then try checking out your remote branch again.

This worked for me.

I believe git fetch pulls in all remote branches, which is not what the original poster wanted.

Source Link
webdevguy
  • 907
  • 9
  • 16

git branch -r says the object name is invalid because that branch name isn't in git's local branch list. Update your local branch list from origin with

git remote update

and then try checking out your remote branch again.

This worked for me.

I believe git fetch pulls in all remote branches, which is not what the original poster wanted.