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.
By SathyaBhat
Collaborative Development Using GitHub and SAP Web IDE
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.
This tutorial is written from a collaborator’s point of view.
Go to https://account.hanatrial.ondemand.com and log in to your SAP Cloud Platform cockpit.
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.
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 Git → Clone repository.
b. Enter your GitHub account credentials and post the repository URL.
c. The repository is now cloned.
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.
b. Give a suitable name for the branch and then click on OK button to create the branch.
c. The branch will be created and the branch against the Git pane will show what branch you will be working against.
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.
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.
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.
Similarly you can address other remaining issues targeted for m1
milestone and commit and push the changes.
Updated 12/12/2017
Contributors Provide Feedback
15 Min.