在 Android Studio 中刷新远程 Git 分支

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47362422/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 12:58:57  来源:igfitidea点击:

Refresh remote Git branches in Android studio

androidgitandroid-studiorefreshremote-branch

提问by Firzan Shaikh

There is a new branch in the remote repository, but it does not appear in the git branches in android studio. How can I refresh that list to show the new branch?

远程仓库中有一个新的分支,但是在android studio的git分支中没有出现。如何刷新该列表以显示新分支?

I have tried git branch -rbut new branch is not showing in the list.

我已经尝试过,git branch -r但列表中没有显示新分支。

回答by Pranav Karnik

In your Android Studio menu bar, click on VCS > Git > Fetch

在您的 Android Studio 菜单栏中,单击 VCS > Git > Fetch

Check the image:

检查图像:

Git Fetch in Android Studio

Android Studio 中的 Git 提取

回答by ????

You can try using VCS (from menu)then click on Gitand then on Fetch. Alternatively, you can use git fetch --all

您可以尝试使用VCS (from menu),然后点击Git,然后Fetch。或者,您可以使用git fetch --all

回答by Valentin Baryshev

Try using git fetchor use git fetch --all

尝试使用git fetch或使用git fetch --all