Skip to Content

Creating branches in GitHub, switching branches and updating application in different branch in SAP Web IDE

Previous

Creating branches in GitHub, switching branches and updating application in different branch in SAP Web IDE

By SathyaBhat

Part 5 of 6, Collaborative Development Using GitHub and SAP Web IDE

You will learn

In this tutorial, you’ll learn how your collaborators can create branches in GitHub, switch to the other branch in SAP Web IDE and perform changes and commit the changes to the other branch.

Details

This tutorial is written from a collaborator’s point of view.


  1. Go to https://account.hanatrial.ondemand.com and log in to your SAP HANA Cloud Platform cockpit.

  2. To open SAP Web IDE, click on the Services tab in the navigation bar, scroll down and then click the SAP Web IDE tile to open the SAP Web IDE service page.

    Find SAP Web IDE

  3. You’ll have to clone the GitHub organization repository in SAP Web IDE. To do this

    a. From the File menu in SAP Web IDE, click on GitClone repository.

    Clone repository

    b. Enter your GitHub account credentials and post the repository URL.

    Repository details

    c. The repository is now cloned.

  4. Create a branch to which you will make the changes. To do this

    a. Click on Git pane on the right hand side and then click on the + icon next to the branch label to create a branch.

    Create a branch

    b. Give a suitable name for the branch and then click on OK button to create the branch.

    Branch details

    c. The branch will be created and the branch against the Git pane will show what branch you will be working against.

    Branch created

  5. Since this branch is dedicated to milestone m1 changes which have 2 issues to be targeted, you will implement the changes for each of these in separate commits.

    a. For issue#1 you will do changes in S3_PurchaseOrderDetails.view.xml to remove the OrderedByName entry.

    b. Notice that when you save the changes, the Git pane on the right hand side shows the file that was changed. To commit the changes to the repository, click on the Stage checkbox, enter a change description and then click on commit.

    GitHub will automatically close an issue if your commit message includes certain keywords once this change is merged into the master branch. You will see this in the next tutorial.

    Add change description

    c. Click on the Commit button to commit changes to the repository and then Push and select Remote branch to push the changes to GitHub.

    Push to GitHub remote branch

  6. Now if you check the m1 branch on GitHub organization repository, you will see that the push has been completed and the changes are seen on GitHub.

    Push to GitHub remote branch is successful

  7. Similarly you can address other remaining issues targeted for m1 milestone and commit and push the changes.

Next Steps

Next
Back to top