Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio VCS won't push my new branch to Git

In my Android Studio project, I had one branch called myproj.

I've been updating and committing to it for a few days. I decided I wanted to work on a new feature and I'm not sure where it will take me so I created a new branch.

When I committed and pushed my new changes however, it seems to have only committed it locally but didn't push it. When I go to my Git repository it still says I have one branch.

How do I push this new branch to Git?

like image 332
CodyBugstein Avatar asked Sep 29 '22 16:09

CodyBugstein


1 Answers

You can push the branch in terminal (command prompt) by using following command

  • git push origin yourbranchname

    origin - your remote URL

    yourbranchname - the branch which you want to push

like image 57
Anjaneyulu Battula Avatar answered Oct 20 '22 22:10

Anjaneyulu Battula