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, especially Devops Skill such as Docker, vagrant, git, and so forth. I like open-sources, so I created DevopsRoles.com to share the knowledge I have acquired. 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.