cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Connect Eclipse with Git or abapGit and Push ABAP Code to GitHub for ABAP Cloud project

Ayyaparaja
Explorer
0 Likes
5,785

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:

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)?

View Entire Topic
mainak-aich
Participant

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

Ayyaparaja
Explorer
0 Likes
Hi @mainak-aich, Thanks for sharing the detailed steps.