Friday, March 15, 2019


Safest Way to Merge A Git Branch Into Master

In this article I am going to explain you about the safest way to merge a git branch(stage branch) into master branch.

Git Merge:-

Never forget to take a pull from your master branch after pushing your all new changes to your current git branch.

If your current branch(stage branch) is up to date and now you want to merge your current branch (stage branch) with master branch then follow below process.

first checkout to master branch then merge with below command

-> git pull origin <your-current-branch-name> [git pull origin master]
-> git merge <your-previous-branch-name> [git merge stage]
-> git push origin <your-current-branch-name> [git push origin master]
-> checkout your <your-previous-branch-name> [git checkout stage]

you done the all steps.

About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a huge information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :