How to merge data between Git branches

0 votes

Hi Guys,

I have two Git branches named master and dev1. Now I want to merge data between these two branches. How can I do that?

May 10, 2020 in Git & GitHub by akhtar
• 38,260 points
685 views

1 answer to this question.

0 votes

Hi@akhtar,

You can merge your data between Git branches using git merge command. Say you want to merge your data from dev1 branch to master branch. For that you have to checkout to the master branch using bellow command and then you can apply git merge.

$ git checkout master
$ git merge dev1

Hope this will help.

answered May 10, 2020 by MD
• 95,460 points

Related Questions In Git & GitHub

0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,890 points
2,472 views
0 votes
1 answer
0 votes
0 answers

Difference between git rebase and git merge? Which among them is better to use?

Difference between git rebase and git merge? ...READ MORE

Nov 25, 2019 in Git & GitHub by anonymous
• 19,610 points

closed Nov 25, 2019 by Sirajul 1,001 views
+1 vote
1 answer

How to resolve merge conflicts in Git repository?

Hi@akhtar, You can try with git mergetool. It ...READ MORE

answered Nov 22, 2020 in Git & GitHub by MD
• 95,460 points
811 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
0 votes
1 answer

How to merge with squash in Git?

Hi@akhtar, If you want to merge your data ...READ MORE

answered May 13, 2020 in Git & GitHub by MD
• 95,460 points
799 views
0 votes
1 answer

How to clone all remote branches in Git?

Hi@akhtar, You can use the git clone command ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,460 points
1,406 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP