Skip to Content

Create a Project in SAP Web IDE and Import into GitHub

test
0 %
Create a Project in SAP Web IDE and Import into GitHub
Details
// Explore More Tutorials

Create a Project in SAP Web IDE and Import into GitHub

07/15/2019

Create a project in SAP Web IDE and import it into GitHub to support collaborative development using GitHub and SAP Web IDE.

You will learn

  • How to import an existing SAP Web IDE project into your previously created GitHub repository


Step 1: Log into your SAP Cloud Platform cockpit

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

Log on to answer question
Step 2: Open the SAP Web IDE service page

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

Find SAP Web IDE
Log on to answer question
Step 3: Launch SAP Web IDE

Click Go to Service to launch SAP Web IDE.

Open SAP Web IDE
Log on to answer question
Step 4: Open your project

Open an existing project in SAP Web IDE by clicking File > Import.

You could also create a new application by clicking File > New > Project from Template.

Log on to answer question
Step 5: Initialize local repository

Once your project is open, right-click on your project folder and click Git > Initialize Local Repository.

Create local Git repository
Log on to answer question
Step 6: Add Git repository URL to your project

In the Configure Git Repository dialog box, enter your GitHub organization repository’s URL

Fetch the remote repository URL by heading over to the GitHub organization URL. Click the Clone or Download button and then select the icon to copy the URL to the clipboard.

Select remote repository URL

Paste this URL into the remote repository textbox.

Paste remote repository URL
Log on to answer question
Step 7: Verify Git repository

Your project is now initialized with a Git repository and linked to the GitHub platform. You can open the Git pane on the right sidebar to verify this.

Git repository initialized
Log on to answer question
Step 8: Stage and commit files

Commit the project files to the local Git repository by clicking Stage all, enter a commit message, and click Commit.

Git changes committed
Log on to answer question
Step 9: Pull from GitHub

To synchronize the GitHub repository and local repository changes, click Pull. Enter your GitHub credentials.

Pull GitHub changes
Log on to answer question
Step 10: View downloaded README

Once the pull is complete, you’ll notice the README.md file that was created on GitHub is now available in the SAP Web IDE project workspace.

Pull complete
Log on to answer question
Step 11: Push your local changes to GitHub

Click Push and select Remote Branch

Push to GitHub

Select origin/master as the remote branch and click OK.

Select GitHub remote

Enter your GitHub credentials and click OK.

Once the push is complete, you will see a notification message on the top-right corner.

Push completed
Log on to answer question
Step 12: Check published changes

Go to the organization GitHub URL and you will notice that the changes are now published.

Log on to answer question

Next Steps

Back to top