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
• 11,270 points
36 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
• 24,500 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
433 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
• 10,080 points

closed Nov 25, 2019 by Sirajul 134 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
• 53,110 points
158 views
+13 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,420 points
498 views
0 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
• 24,500 points
32 views
0 votes
1 answer

How merge works in Git & GitHub!!!??

Hi@Hasid, In Git & GitHub merge concept comes ...READ MORE

answered Jan 31 in Git & GitHub by MD
• 24,500 points
37 views