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 developCloning 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
toHello 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 developCounting objects: 3, done.Delta compression using up to 4 threads.Compressing objects: 100% (3/3), done.Writing objects: 100% (3/3), 321 bytes | 321.00 KiB/s, done.Total 3 (delta 1), reused 0 (delta 0)remote: remote: To create a merge request for develop, visit:remote: http...