Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i merge my "Fix branch" back to "Master branch" from Android Studio?

Tags:

I have created an application in Android Studio and i have integrated it with Git. So far i commit & push my changes to the master branch.

Now i have created a new branch (from master) named "Fix1" and i have committed and pushed my latest changes to this branch. Which are the next steps in order to merge Fix1 back to Master? Can i do it from Android studio?

This is what i see as options at the bottom right git menu: Git options in Android Studio

like image 523
mike_x_ Avatar asked Apr 21 '17 06:04

mike_x_


People also ask

How do I merge back to master branch?

Once the feature is complete, the branch can be merged back into the main code branch. First we run git checkout master to change the active branch back to the master branch. Then we run the command git merge new-branch to merge the new feature into the master branch.

How to merge two branches in Android Studio?

The current branch name will appear at the bottom of the branches list (Or at the top of the list marked with yellow from the latest Android studio version ) from this branches list pick the branch you want to merge into the current branch and pick "Merge" in this case pick branch B and press merge

How do I merge a branch to master in Git?

If you want to merge your branch to master on remote, follow the below steps: push your branch say 'br-1' to remote using git push origin br-1. switch to master branch on your local repository using git checkout master. update local master with remote master using git pull origin master.

How to merge local branch with master without missing changes?

Merge Local Branch with Master without missing Changes Step 1: Stash your local working branch changes. Checkout to your local branch. Make new changes to your local branch. Step 2: Update your local master branch with remote. Checkout to the master branch. You can use the git branch command... Step ...

How do I merge two branches in Visual Studio?

To merge the main branch with the development branch Right-click the main branch, point to Branching and Merging, and then click Merge… The Source Control Merge Wizardappears. On the Select the source and target branches for the merge operationscreen: In Source branch, specify the main branch.


1 Answers

Yes you can.

  1. First you need to push your code in in your fix1 branch which you already did
  2. Than change your branch to master
  3. Now from top VCS control go to git->pull and select your fix1 branch and than click on pull button

Now it will merge your fix1 code to master branch

like image 189
Burhanuddin Rashid Avatar answered Oct 04 '22 14:10

Burhanuddin Rashid