Merging changes from develop to master

Let's see how to merge changes from the develop branch to the master branch:

  1. You can specify which branch to clone from the Git repository:
$git clone http://54.202.196.64/root/Sample.git -b develop
Cloning into 'Sample'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.  
  1. For testing, we will make a small change, such as changing the console log message from Hello World to Hello Git.  Add the changes to Git and push the changes to the remote develop branch:
$git add main.js
$git commit -m "Test merge request"
$git push origin develop

Get DevOps for Salesforce now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.