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:
認(rèn)證高級(jí)PHP講師
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;