git branch -a cannot display all remote branches, only the remote master branch
PHP中文网
PHP中文网 2017-05-02 09:49:32
0
2
797

I created a new git repository on my gitlab. My local code connected to the remote repository using git init and git remote master URL. Then I created a new init branch. Why am I in the local git branch at this time - When a, only the remote master branch can be displayed? As shown in the picture:

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