I have recently forked a remote copy of the GIT repository, the remote version has 3 branches development, staging, master.
Now i want to get the latest from the remote's staging branch, hence i tried to switch to the local repo's staging branch to take the updates from remot repo's staging branch.
I used below command to switch to staging branch git checkout staging
but it was throws an error pathspec staging does not match any file(s) known to git
, however when i try git checkout origin/staging
it does checkout but the branch name is some random characters like 1d63d7d
When i tried to list branches in my local repo's copy, it just lists development.
Can anyone tell me how shall i switch to staging branch within the local repo.