84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我在我的gitlab上面新建了一个git仓库,我在本地的代码用git init,git remote master URL的形式连接了远程仓库,之后新建了init分支,为什么这时候我在本地git branch -a 的时候只能显示 远程的master分支?如图所示:
认证高级PHP讲师
git branch -aList local branches and remote branches;The remote branch here refers to the locally saved remote tracking branch;
git branch -a
You can update the local remote tracking branch throughget fetchto keep it consistent with the remote branch;
get fetch
git pullWant to try it now?
git pull
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 pull
Want to try it now?