In this post, we will see how to use GIT Clone, Push, and Merge in Oracle Visual Builder Studio. To know how to create repositories and branches, click here.
Cloning the repository
- Here we have created a new repository with open protection setting
- Go to Files -> Clone and copy the HTTPS URL
- Open GitHub Desktop and Click File-> Clone Repository. Paste the URL and select the location for the repository. And click the Clone button.
- The repository will be cloned into your system and shown as below
Pushing the changes
- As we know that our branch is OPEN, so anybody having access to this repository can push the changes. Now, let's modify the TestFile1.txt and one new line in it as below:
Merge Operation
- To demonstrate the merge option let's create another branch "test" in VBS. Click here to see how.
- In GitHub Desktop, click the Fetch Origin button
- Click on Current Branch and select origin/test
- Change the TestFile1.txt and push the changes to remote
- Now to merge the changes of the test branch to the main branch, we need to submit a merge request.
- Go to Merge Requests section and click Create Merge Request button
- Select the Repository, Target Branch, and Review Branch and click the Next button
- Select the reviewers for this merge request. When the approver approves the merge request then only the merge operation will be performed. Enter the reviewer and click the Next button.
- Enter the Summary, and click the Create button to create a merge request.
- Then click on Merge
Comments
Post a Comment