Using Simplified Git in SAP Business Application Studio
In this tutorial, we will walk through the basic Git operations such as cloning a repository, making changes, committing them, and pushing them back to the remote repository.
You are subscribed to SAP Business Application Studio. See Getting Started.
To begin using Simplified Git, you must have a project that includes a Git repository. From the SIMPLIFIED GIT view, you can open a folder with an existing Git project, clone a repository locally using a URL, or create a new project with a local Git repository and connect it to a remote one.
SAP Business Application Studio enables you to connect and interact with the Git source control system. Using Simplified Git reduces the complexity of handling Git operations by simplifying certain multi-step operations into one action, including initialization and publishing of a Git repository or commit & sync.
Step 1Clone a Repository from Git
—
Cloning a Git repository creates a local copy of a remote repository, allowing offline work with the full project history. It enables collaboration by letting you push local changes to update the remote repository and pull team updates to stay current, supporting teamwork and version control.
Clicksimplified git iconto open SIMPLIFIED GIT from the activity bar.
Click Clone Repository.
clone from Git
In the command palette, enter the URL of the repository containing the project you want to clone and press Enter.
Enter URL
Select the projects folder and click OK to clone the repository to this folder.
Add to projects
Enter your Git username and password (or token).
Enter Git username
Enter Git token
Choose whether to save your Git credentials for future use.
Save Git credential
Click Open to open the cloned repository in SAP Business Application Studio.
Open cloned repo
You can also choose to open the repository in a new window or to add it to the workspace.
The project from the Git repository has been cloned into your dev space.
Project added.
Step 2Connect to a Remote Git Repository
+
Connect to a remote Git repository to enable contributions from other developers and to track changes in your project.
Before connecting to a remote repository, make sure the following prerequisites are met:
The remote repository must be completely empty. This is necessary to prevent conflicts.
Your user credentials must have at least WRITE permissions for the remote repository. Simplified Git requires write access to upload project content into the repository.
Clicksimplified git iconto open SIMPLIFIED GIT from the activity bar.
If you have a project that is already initialized in Git, click Add Remote Repository.
If you haven’t created a project, perform the following steps:
Click Initialize & Publish Repository if you haven’t initialized your project in Git.
This will initiate your project in Git and add a remote repository.
In the command palette, select your project folder as the workspace folder to initialize the repository in.

Add the URL for the remote repository where your local repository will be pushed.
Remote repo URL
Enter your Git username and password (or token).
Choose whether to save your Git credentials for future use.
The remote Git repository has been added.
Step 3Commit Changes
+
“Committing changes” in source control is akin to saving a snapshot of your project at a specific point in time. When you make changes to a file or project, you review those changes and write a brief summary, known as a commit message, to explain what was done. By committing, you officially save these changes to the project’s history, allowing you and your team to track modifications, understand the development process, and collaborate effectively. This also provides a safety net to revert to previous versions if mistakes occur.
Make a change to your project. For example, add a dummy file called temp.txt.
Clicksimplified git iconto open SIMPLIFIED GIT from the activity bar. You will see your new file has been added to the PENDING CHANGES section. Likewise, the Simplified Git icon shows there is one change waiting for you.
Pending changes
The PENDING CHANGES section lists all changes that you have made in your project that have not yet been committed and synced to your connected remote Git repository. Select the files with changes that you want to include in the commit by using the checkboxes beside each file.
Enter a message describing the change you made to the project.
add message
Click Commit and Sync.
commit
Your changes are now added to the main branch of your project. This means that the changes will be visible to anyone else working on the project. You can create a separate branch where you can work and make changes until you are ready to commit to the main branch.
A repository contains branches, which are different lines of development or versions of the code. The main branch usually holds stable code. Locally, you have branches stored on your computer, while remote branches are on a server like GitHub or GitLab, allowing for collaboration with others.
Step 4Pull Changes
+
Any time you work on a project, you should pull changes to ensure that you keep your local Git repository up to date with the remote repository.
Pull is a combination of 2 commands:
fetch: Downloads the latest changes from the remote repository without modifying the local branch.
merge: Merges the latest changes into your local branch.
Clicksimplified git iconto open SIMPLIFIED GIT from the activity bar. You will see that updated files are displayed in the PENDING CHANGES section. Likewise, the Simplified Git icon shows changes waiting for you.
Click Pull.
pull
The changes made in the remote repository are now added to your local branch.
Step 5Resolve Conflicts
+
Merge operations can fail when the same parts of a file have been modified differently in the current (local) branch and the remote branch. In such cases, Git cannot automatically complete the merge, requiring manual intervention. Managing and resolving these conflicts is essential for maintaining an effective collaborative development workflow. To resolve these conflicts, you must review and edit the affected files to decide which changes to keep or modify.
When there are conflicts, the MERGE FILES section is displayed.
merge files
Click one of the files to resolve the conflict. A split view is displayed.
split view
Choose one of the following options to resolve the merge conflict:
Accept Current Change: Apply the selected line of change from the current (local) branch.
Accept Incoming Change: Apply the selected line of change from the remote branch.
Ignore: Ignore the selected line of change.
Complete Merge: Opens the SOURCE CONTROL view for completing the merge.
Only choose this option if you want to use the SOURCE CONTROL view.
Enter a message describing your changes and click Commit & Sync to complete the conflict resolution and sync your changes to the remote repository.
Step 6Perform Actions in the Pending Changes Section
+
You can discard all selected changes, individually discard or ignore each pending change, or you can open an updated file in the PENDING CHANGES section.
Discard Changes
Discarding removes changes from the active branch.
In the PENDING CHANGES section, you can discard the relevant changes:
To discard all selected changes, hover over the PENDING CHANGES section title and clickDiscard selected changed.
Discard selected changes
To discard changes for a specific file, hover over the file containing the changes you want to discard and clickDiscard changes in a file.
Discard changes in file
Ignore Pending Changes Individually
To ignore pending changes in a specific file, hover over the file containing the changes you want to ignore and clickAdd to .gitignore.
Add to gitignore
Open Updated File
To open a file with pending changes, hover over the file and clickOpen File.
Open file
Step 7Create a Branch
+
Create a new branch using the SIMPLIFIED GIT view and publish it to the remote repository.
In the Branch section, open the dropdown list and select + Add New Branch.
Add branch
Enter a name for the new branch.
Name branch
Select one the following options:
main: Create a branch of the main directory on the local repository.
origin/main: Create a branch of the main directory on the remote repository.
Select base branch
The new branch is added to the dropdown list in the Branch section.
New branch in list
Select Publish Branch to sync the new branch with the remote repository.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 7
1. Clone a Repository from Git2. Connect to a Remote Git Repository3. Commit Changes4. Pull Changes5. Resolve Conflicts6. Perform Actions in the Pending Changes Section7. Create a Branch
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.