Let's see how to merge changes from the develop branch to the master branch:
- 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.
- 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