Push Your ABAP Source Code from SAP BTP, ABAP Environment to a GitHub Repository using abapGit
- How to create or adapt source code in ABAP instance
- How to open
- How to stage and commit ABAP development objects
- Step 1
Open ABAP Development Tools and logon to your ABAP system.
Add ABAP development object to your already existing package
TESTABAPGIT(e.g. ABAP class).
Therefore right-click on Classes and select New ABAP Class.
Create a package:
Click Next >.
- Description: new class
Implement your newly created class.
Save and activate.
- Step 2
Log in to your GitHub repository, select your folder, click Code and copy the HTTP link for later use.
Go back to Eclipse. Select your ABAP system in the Project Explorer and select Windows > Show View > Other to open the
abapGit repositories, select it and click Open.
abapGitrepositories ab, click the
Enter your git repository URL from earlier and click Next >.
Enter following information:
Click Next > and Finish.
- Step 3
Right-click on your package
TESTABAPGITand click Stage and Push.
Enter your repository credentials in the popup and click OK.
In the staging view you will see a list of changed, created or deleted ABAP development objects which can be transferred to your repository. Furthermore the icon of the respective file indicated whether a file was created, modified or deleted.
ABAP development objects which should staged can be selected by drag and drop from the
unstagedbox to the staged box or by clicking on the + button.
Enter your commit message and click Commit and Push.
Check your result.
The staged objects are transferred to your repository.
- Step 4
Which one is the right path to open the abapGit repository?