git branch -a无法全部显示远程的分支,只显示远程的master分支
PHP中文网
PHP中文网 2017-05-02 09:49:32
0
2
741

我在我的gitlab上面新建了一个git仓库,我在本地的代码用git init,git remote master URL的形式连接了远程仓库,之后新建了init分支,为什么这时候我在本地git branch -a 的时候只能显示 远程的master分支?如图所示:

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
滿天的星座

git branch -a List local branches and remote branches;
The remote branch here refers to the locally saved remote tracking branch;

You can update the local remote tracking branch through get fetch to keep it consistent with the remote branch;

刘奇

git pullWant to try it now?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!