Git: cannot checkout branch - error: pathspec '…' did not match any file(s) known to git

后端 未结 30 3280
太阳男子
太阳男子 2020-11-27 23:54

I\'m not sure why I\'m unable to checkout a branch that I had worked on earlier. See the commands below (note: co is an alias for checkou

30条回答
  •  -上瘾入骨i
    2020-11-28 00:36

    Three steps

    1. Write a command 'git fetch'
    2. then you will see the desired branch then switch to the relevant branch 'git checkout 'your_branch_name'
    3. then write a command 'git pull origin your_desired_branch_name'

提交回复
热议问题