How to merge a branch into master in Git
In this tutorial, we are going to learn about how to merge a branch into the master in Git.
Merging branch into master
Consider we have a two branches dev, master in our git repository and we need to merge the dev branch into a master.
- On the
devbranch rungit merge mastercommand to check any merge conflicts with amasterbranch.
git merge master- Now, change your current branch to master by running the following command.
git checkout master- At final, run the
git merge devcommand to merge adevbranch into a master.
git merge devNote: In your case, the
devbranch should be some other.


