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 in Git & GitHub by akhtar
• 25,210 points
65 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 by MD
• 57,060 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,850 points
589 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
• 16,330 points

closed Nov 25, 2019 by Sirajul 185 views
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 57,940 points
225 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
682 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 in Git & GitHub by MD
• 57,060 points
72 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 in Git & GitHub by MD
• 57,060 points
53 views