Skip to Content
Technical Articles

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

 

1 Comment
You must be Logged on to comment or reply to a post.
  • 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 !!!