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,170 points
97 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,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,890 points
808 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,580 points

closed Nov 25, 2019 by Sirajul 258 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 21, 2020 in Git & GitHub by MD
• 95,060 points
76 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
946 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,060 points
112 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,060 points
200 views