Demonstrating GIT Clone, Push, Merge in Oracle Visual Builder Studio

 


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:

  • In GitHub Desktop, you will see the changes below. Enter the Commit Message "Updated the File" and click the Commit to main button.



  • Click the Push origin button to push the changes to remote


  • Changes are now visible in VBS:





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. 

  • Below are the fields of Details, if you want to use them. Click the Next button to continue.



  • Enter the Summary, and click the Create button to create a merge request.

  • Since I have put my own name in the reviewer field I am able to the merge request in Assigned To Me

  • Open the merge request and approve it.


  • Then click on Merge 
  • Now go to GitHub Desktop and click on Fetch origin. You will see that the Pull Origin option is visible now, click it.



  • The merge request is now merged



Comments