on 2025 Jun 03 2:56 PM
I'm working on an ABAP development project and would like to integrate version control using GitHub.
I’m specifically looking to push ABAP code to GitHub directly from Eclipse using either Git or the abapGit plugin.
What I've done so far:
Installed Egit plugin in Eclipse via the Marketplace.
Installed the abapGit plugin in Eclipse following the SAP Developers guide:
https://developers.sap.com/tutorials/abap-install-abapgit-plugin.html
I'm trying to understand:
Can I push ABAP code directly from Eclipse ADT to GitHub?
If yes, what are the exact steps to do this using either Git or abapGit in Eclipse?
If not, what is the recommended way to use GitHub for ABAP version control (especially in ABAP cloud project)?
Request clarification before answering.
Hi @Ayyaparaja ,
Yes, you can absolutely push ABAP code directly from Eclipse ADT to a GitHub repository. Based on the plugins you've installed, the correct tool for this is the abapGit plugin for ADT.
Here is a comprehensive guide to help you link your repository and manage your code.
Prerequisites in GitHub
Before you begin in ADT, please complete the following steps in GitHub:
Linking Your Repository in ADT
Follow these steps to link your local ABAP package to the remote Git repository:
Please Note: This "linking" step does not clone or pull any code. It simply establishes a persistent connection between a specific ABAP package and a specific branch of your Git repository. The current architecture permits a one-to-one relationship; one package can be linked to only one repository branch at a time.
Complete the "Link Repository" Wizard:
Performing Git Operations
Once the link is established, you can perform standard Git operations from the context menu of the linked repository.
For Pulling Changes from the Repository
If the remote repository contains objects that are not yet in your ABAP system, you can pull them.
For Pushing Your Changes to the Repository
Please let me know if there is any other information I can help you with.
Thanks,
Aarnav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ayyaparaja ,
The short answer is yes, it is possible to push ABAP code to Git e.g. Github. You need abapgit to be installed which I presume you have done. Just follow the steps.
1. Create a new repository in github and get the link of the repository.
2. Note down your github user and password. Also, create a token. (path is profile->settings->Developer settings->personal access token)
3. In the Eclipst ADT, open github repositories view and link your package to the repository. (You should be seeing a + button for this in this view). Use the package which has all the objects you want to push to github. Don't select the checkbox, pull after link.
4. Once successfully linked, open another view github Staging. Then the current repository content should be shown. If not, you need to select your repository by clicking on the golden cylinder button on top right and select the repository you linked in step 3.
5. Once the repository is selected, all the unstaged changed objects will be shown. You need select all or part and click on the + button to stage it.
6. Once staged, you need to write a commit message and click on "Commit and Push" button. The github user id and password prompt will appear. Enter the one mentioned in step 2.
Once push is over, you will be able to view your objects inside the github repository you used in step 1.
Thanks,
Mainak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
there's another tutorial on GitHub that might help:
https://developers.sap.com/tutorials/abap-environment-abapgit-transfer..html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this tutorial provides information about how to install the abapGit Plugin to transfer ABAP development objects between a Git repository and an SAP S/4HANA Cloud, ABAP Environment instance or an SAP BTP, ABAP Environment instance.
Does this help?
Kind regards,
Wolfgang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wolfgang,
Thanks for sharing the tutorial — it was helpful for installing the abapGit plugin in Eclipse.
However, I could only find the installation steps.
Could you please share the steps to connect Eclipse with a Git repository for ABAP code?
I'm specifically looking to understand how to push ABAP code from Eclipse (ADT) to GitHub for version control.
Thanks in advance!
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.