简体   繁体   English

如何使用Git-Plus更新或获取分支

[英]How to update or get branches with Git-Plus

I just start using GitHub for a project. 我刚刚开始将GitHub用于项目。 I managed to set up GitHub, Atom, and Git-Plus package, so everything works fine. 我设法设置了GitHub,Atom和Git-Plus软件包,因此一切正常。 The problem is that I don't know how to update or get branches from GitHub repository. 问题是我不知道如何从GitHub存储库更新或获取分支。

For example, I created a new branch test-br, in the project it show me only master 例如,我创建了一个新的分支test-br,在项目中仅向我显示了master

$ git branch
* master

You've created a remote branch. 您已经创建了一个远程分支。 In order to see it you much first fetch it, eg: 为了看到它,您首先要获取它,例如:

$ git fetch origin

And then list the local copies of the remote branches: 然后列出远程分支的本地副本:

$ git branch -r

You should see something like origin/test-br there. 您应该在此处看到类似于origin/test-br

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM