How can I switch to another branch in git?

If another_branch already exists locally and you are not on this branch, then git checkout another_branch switches to the branch. If another_branch does not exist but origin/another_branch does, then git checkout another_branch is equivalent to git checkout -b another_branch origin/another_branch; git branch -u origin/another_branch. That’s to create another_branch from origin/another_branch and set origin/another_branch as the … Read more

How do I check out a remote Git branch?

With One Remote With Git versions ≥ 1.6.6, with only one remote, you can do: As user masukomi points out in a comment, git checkout test will NOT work in modern git if you have multiple remotes. In this case use or the shorthand With >1 Remotes Before you can start working locally on a remote branch, … Read more

error code: 523