Skip to Content
Technical Articles
Author's profile photo Nikhil Puri

How to setup GIT in SAP Business Application Studio

What is SAP Business Application Studio?

SAP Business Application Studio is a new SAP Cloud Platform service in SAP Cloud Foundry which offers a modular development environment tailored for efficient development of business applications for the SAP Intelligent Enterprise.

 

Capabilities

In SAP Business Application Studio, the developer is provided with one or more Development Spaces. As a developer, you can chose which tools will be installed on your dev space by selecting the suitable extension pack.

 

These tools covers the end-to-end development cycle:

  • Clone an existing project with a Git client or create new project using various templates.

  • Use editors for SAP specific technologies.

  • Easily test your application on your dev space while consuming services from remote sources.

  • Build and deploy the application as multitarget applications (MTA).

GIT Issue

There is no provision to set the Git Repository for new project we create. Like WebIDE , there is no provision to assign GIT repository URL.

Solution

Create Repository in GIT.

For git, simply type “git” and a list of git commands will be filtered. Git clone is one of the commands,

Please follow the below GIT Commands.

  1. Initialization of GIT
    git init
    ​git config --global user.email "your@example.com"
    git config --global user.name "Your Name"
  2. Set Remote Origin URL
    git remote add origin https://github.com/user.name/RepoName.git
    
    If already exist then use below command
    
    git remote set-url origin https://github.com/user.name/RepoName.git
  3. Staging the Changes of Project
    git add .
  4.  Commit your changes
    git commit -m "GIT Comment"
  5.  Push your changes into GIT
    git push origin master
  6. Pull your latest changes from GIT
    git pull origin master

 

I hope everyone enjoyed this blog, Please don’t forget to put comment.?

 

Regards

Nikhil Puri

 

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Hieu Ngo Xuan
      Hieu Ngo Xuan

      Hi Nikhil Puri. Thank’s for this topic. But now I’m facing the public key problem.

      I also set up a git repository available in GitLab.

       

      I have known how to set up this key in the local computers like mac or window. Can you tell me how to set up a public key in this environment?
      Anything support is appreciated, thank’s you advance !!!

      Author's profile photo Ulrich Becker
      Ulrich Becker

      Actually i don't get , where there is anything covered for BTP and GIT in your blog.

      Are you telling, that there is a command line directly on the btp available, and a git client is installed?

       

      Or are you just skipping some import/export and using a local git client?

      Then also the crucial steps are not explained.

       

      For my point of view the   missing step is:

      Just Open the Terminal in the menue in BAP on BTP .  A git client is installed and you can type git commands .

      You have to check the right path commands, and every single file manually via bit commands at command line. (i guess)

      So there is a  kind of git support on Cloud Foundry . It is just manual work, but available.

      (Is there any support or information which remote repositories are reachable, and who is repsonsible for that?)

       

       

      Regards,

       

      Uli

      Author's profile photo Nikhil Puri
      Nikhil Puri
      Blog Post Author

      Hi Uli,

      Hope you are doing good!

      This blog is focused on setup the git in Business Application Studio.

      You can access the CLI on Business Application Studio Which is IDE available on SAP BTP.

       

      Thanks
      Nikhil Puri

      Author's profile photo Ulrich Becker
      Ulrich Becker

      Hello Nikhil,

       

      i just suggested to add this one sentence. Find available Git commands in the CLI or using the Command search. Or simply: a git bash is available.

       

      Thanks anyway, I , for myself needed your blog to just try out, if a Git client is available

      Uli

       

      Author's profile photo Ramin Shafai
      Ramin Shafai

      Thanks Nikhil. Your blog helped us a lot.