Git merge development branch to master branch

In this tutorial, How to use Git merge the development branch to the master branch?

To merge a development branch into the master branch using Git, you can follow these steps:

The current development branch is develop

$ git branch

The screen output terminal:

* develop
master

Step 1: Ensure you are on the target branch (master)

Step 2: Fetch the latest changes from the remote repository

Step 3: Merge the development branch into the master branch

Step 4: Review the merge

Step 5: Commit the merge

Step 6: Push the changes to the remote repository

For example, Git merge

You want to merge branch develop to branch master as below

$ git checkout master
$ git pull origin master
$ git merge develop
$ git push origin master

Conclusion

Through the article, you can use “Git to merge the development branch to the master branch” as above. 

By following these steps, you can merge the development branch into the master branch using Git.

I hope will this your helpful. Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.