我遇到了Git的问题,我切换到了一个新的分支并提交了更改,但是新的分支在分支列表中没有显示出来。
git checkout -b new-branch
git branch
develop
*new-branch
git commit -am 'new message'
git push -u origin new-branch
git branch -a
[here the new branch does not show]
git checkout origin/new-branch
error: pathspec 'origin/new-branch' did not match any file(s) known to git.
有什么步骤我漏掉了吗?