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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With