Tech Junkie Blog - Real World Tutorials, Happy Coding!: git & github : Merge Branch Into Master Branch

Tuesday, October 26, 2021

git & github : Merge Branch Into Master Branch

In a typical git scenario you would have a new branch for developers to work on, the when he or she is done. You do your code reviews and what not.  After you are satisfied with the results you would want to merge the new branch into the master branch.

In this post I am going to show you how to merge an existing branch into a master branch

Here are the steps:

1. First you want to checkout the master branch to work on it with the command git checkout master

2.  Then you want to pull the existing master branches code from the remote repository with this command git pull origin master

3. Now you are ready to merge the branch with the master branch with this command git merge myBranchName

4. The final step is to push the changes to the remote repository with this command git push origin master

If you go into github and look at the master branch you will see the changes you've made in the new branch

Previous: git & github: Create A New Branch

1 comment:

  1. European computers and peripherals accept the same 220V 50Hz input power as other electronic devices, so you will need to check the power requirements of any computers you want to take with you just as you would with any other electronic device. If your computer does not support a 220V, 50Hz European power supply, you should explore options for replacing or replacing the transformer or power supply in your device. Depending on the brand of your computer, this can be a simple or complex question. Replacing a laptop or laptop power supply is usually the simplest and easiest, but you should see what options you have for your device.


Search This Blog