How to merge developer branch with master branch using CLI?

You can merge changes without going through a UI – this is one of the core functionalities of Git. Assuming you have two branches (development and master). There are below steps which we need to follow:

Check out development branch with this command

git checkout development

Make changes, add directory and files, commit and push to git-lab.

git push origin development

Check out to master branch to merge with development branch

git checkout master

Merge the changes from the development branch to master using this command

git merge development

Push the changes to the remote(git-lab) using this command

git push origin production


Leave a Reply

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

three × one =

Scroll to top