Refresh remote Git branches in Android studio
Asked Answered
P

3

37

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.

Pike answered 18/11, 2017 at 4:13 Comment(0)
I
108

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

Check the image:

Git Fetch in Android Studio

Institutive answered 18/11, 2017 at 4:15 Comment(3)
Would be nice if they just named it "Refresh remote" or something similar.Spicer
Theres no Git option there.Tasteful
@Tasteful If VCS is enabled, the option is available in the Menu bar. I have updated the answer and added image in it. Please check the same.Institutive
I
5

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

Impertinence answered 2/12, 2017 at 4:44 Comment(0)
G
3

Try using git fetch or use git fetch --all

Grata answered 18/11, 2017 at 4:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.