Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh remote Git branches in Android studio

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?

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

like image 341
Firzan Shaikh Avatar asked Nov 18 '17 04:11

Firzan Shaikh


People also ask

How do I clean up remote branches?

In order to clean up remote tracking branches, meaning deleting references to non-existing remote branches, use the “git remote prune” command and specify the remote name. In order to find the name of your current configured remotes, run the “git remote” command with the “-v” option.


2 Answers

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

Check the image:

Git Fetch in Android Studio

like image 167
Pranav Karnik Avatar answered Sep 25 '22 20:09

Pranav Karnik


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

like image 45
सेजल Avatar answered Sep 23 '22 20:09

सेजल