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:
滿天的星座2017-05-02 09:51:32
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;