Skip to Content
Author's profile photo Raz Korn

Want to use Bitbucket as your Project Repository with SAP Web IDE?


From time to time, I get asked the question “Can I use an external Git with SAP Web IDE?”

When working with SAP Web IDE I recommend using the integrated SAP HCP Git (Look in the Summary section for some of the reasons).

However, SAP Web IDE enables the use of an external Git as well.

As Lidor Tal mentions in his excellent blog post How to Use the SAP Web IDE Git Client, the first thing you have to do to work with Git, is to have a Git repository in your SAP Web IDE workspace”. However, the examples in Lidor’s blog post, use the SAP HCP Git server that is well integrated with SAP Web IDE.

This blog post describes how to use Bitbucket as an external Git as the project repository with SAP Web IDE. It is part of a series of blogs that discuss Git and SAP Web IDE.

  • It is NOT intended to teach Git. For this there are plenty of resources on the web, specifically with most Git services, you’ll find an education section.
  • It is NOT intended to educate on SAP Web IDE Git client functionality.

This is the second blog post in a series of related blogs that will describe how to use additional Git services as Git repositories for a SAP Web IDE project as well as relevant tips & tricks. In the previous blog post Want to use GitHub as your Project Repository with SAP Web IDE? I presented how to use GitHub as a project repository with SAP Web IDE.


In this blog I will discuss:

  • Creating the repository
  • Cloning the repository


Creating the Git Repository

When working with external Git repositories, and with Bitbucket specifically, the first step is to create the repository. This step is probably the only thing that is substantially different from working with the SAP HCP Git. The reason for this is that when working with external Git, the Git repository creation is done through the Git service, while with the SAP HCP Git when creating an HTML5 application in the HCP cockpit or when deploying to HCP from the SAP Web IDE, it is automatically created for you. Steps to create the Git repository on Bitbucket:

  • Login to your Bitbucket account.
  • Create a new repository.

Following are several ways to create a new repository:

13-12-2015 15-47-05_.png

13-12-2015 15-48-20_.png

13-12-2015 15-42-44_.png

  • Fill in the repository fields, mainly Repository name, description, public/private, etc.
  • Click the “Create repository” button.

Note:  Unlike GitHub, Bitbucket does not provide the option to initialize the repository upon creation. As a result, once the repository is created, you’ll need to go through an additional step of repository initialization prior to cloning it in SAP Web IDE.

13-12-2015 15-57-32_.png

  • Initialize the newly created Bitbucket repository. This is the only additional step you need to make compared to GitHub. Everything you need to do is documented in the webpage that opens after you click on the “Create repository” button in the previous step.
  • Click the “I’m starting from scratch” for teh steps you need to make.

13-12-2015 16-06-32_.png

  • Make sure you have a Git client installed on your machine.
  • Then go through the first set of console commands. I use Windows for this blog.

13-12-2015 16-33-26_.png

  • Going through the first set of commands:

13-12-2015 16-38-22.png

  • Going through the second set of commands:

13-12-2015 16-40-43.png

Now, that the Git repository is initialized I can proceed to cloning it in SAP Web IDE.

Cloning the Git Repository

Steps to clone the Git repository from Bitbucket:

  • In your Bitbucket account, select the repository to clone.

13-12-2015 16-44-01_.png

  • Copy the repository link.

13-12-2015 16-51-28_.png

  • In SAP Web IDE, choose the “Clone Repository” option.

13-12-2015 16-53-58_.png

  • In the URL field of the popup, paste the GitHub repository link and push <Tab> button.

Note: The “Host”, “Repository Path”, “Protocol” and “User” fields are filled-in automatically.

13-12-2015 16-58-36_.png

  • Fill-in the authentication fields. You’re welcome to check the “Remember Me” checkbox for next times.
  • Click “OK”.
  • After clicking “OK” you’ll get notifications both in the console pane as well as in the “Highlighted Announcement Area” of the SAP Web IDE. You will see them at the beginning of the clone operation as well as at the completion.

13-12-2015 17-18-00_.png

  • A new option is available with the latest release of the SAP Web IDE enabling you to “Git Ignore System Files”. You’re welcome to choose either of the options per your work standards.

13-12-2015 17-02-14_.png

Congrats !!!

A new project was generated in SAP Web IDE that was cloned from Bitbucket. You can see that, as expected, the project only contains the contributors.txt file.

Open the Git History pane. Since I chose the “Ignore System Files” options, you’ll see that it contains two commits, the initial commit and the igonre commit. If you click on the initial commit, you’ll see that it only contains one file, contributors.txt that was added to the repository (Status – A).

13-12-2015 17-18-00_.png


Summary & Next Steps

Cloning from an external Git repository is simple.

Bitbucket is somewhat more complicated than GitHub as it requires the additional steps for initializing the repository.


The major difference from the SAP HCP Git is:

  • You need to create the Git repository in Bitbucket prior to the start of development.
  • You need to check initialize the repository using a Git client.


OK, now that the project is cloned in SAP Web IDE, what can I do next?Following are a few options:

  • Import a project.
  • Create a project from template.


A few things to note when working with external Git

  • You cannot deploy from SAP Web IDE to HCP.
  • Creation of branches, and possibly additional repostiroy management operations, should be done via the Git service UI / client.

— Raz

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Tomasz Mackowski
      Tomasz Mackowski


      Do you know if it's possible to use Git server which is hosted internally in the intranet?

      We are using Atlassian Stash as enterprise repository. It's not accessible from internet but I'm wondering if HANA Cloud Connector could help here. Not sure if Web IDE Git Client is working with HCC.

      Author's profile photo Raz Korn
      Raz Korn
      Blog Post Author

      Hi Tomasz,

      We have plans to support on-premise Git, but at this stage I cannot share a target date.


      -- Raz

      Author's profile photo suresh tullimilli
      suresh tullimilli

      Dear Tomasz Mackowski,

      I have seen your thread

      Open outlook editor from interactive with attachment

      As per my Requirement it is very useful to me .

      i have another Question. is it possible Randomly Change the Sender Email Address.

      Because in my System Outlook configured with my Name. But I need mails from Others Mail-Id.

      Pls share me details at

      Once again Thank you very much for your post.