abapGit/docs/guide-moving-package.md
Marc Bernard aa60faa299
Commit Page Update (#5048)
* Commit Page Update

Here's the redesigned commit page moving to the HTML forms you know form other dialogs (goes together with #5047 for best look).

New features:
- check of mandatory entries
- validation of email address format
- link to docs (t.b..d.)
- summary of changes on top, list of changed filed on bottom
- placeholder for body

Closes #5029

* rm > remove

* Create guide-stage-commit.md

* Add files via upload

* Update guide-stage-commit.md

* Delete commit_done.png

* Add files via upload

* Update guide-moving-package.md

* Add files via upload

* Add files via upload

* Update zcl_abapgit_gui_page_patch.clas.xml

* Update zcl_abapgit_gui_page_stage.clas.xml

* Update zcl_abapgit_gui_page_merge.clas.xml

* Update zcl_abapgit_gui_page_commit.clas.xml

* Update zcl_abapgit_gui_page_code_insp.clas.xml

Co-authored-by: Lars Hvam <larshp@hotmail.com>
2021-10-25 16:12:06 +02:00

40 lines
1.1 KiB
Markdown

---
title: Moving package into git
category: online projects
order: 50
---
You have an existing package in your system that you want to copy to a new git repository:
![](img/existing_package.png)
Initialize the git repository, make sure it is not emtpy (typically you add README and LICENSE files from a template):
![](img/existing_git_before.png)
## New Repository
In abapGit, create a repository via the "New Online" button:
![](img/existing_clone.png)
The existing objects will show up in the worklist making it possible to commit the objects to the git repository:
![](img/existing_repo.png)
## Stage and Commit
Select "Stage", "Add All and Commit", and finally "Commit" to transfer all changes to your git repository. For details, see
[Committing changes to git](https://docs.abapgit.org/guide-stage_commit.html).
Now your local abapGit repo and the remote git repository are in sync.
![](img/existing_result.png)
You can view the updated repository, which will contains a [.abapgit.xml](https://docs.abapgit.org/settings-dot-abapgit.html) file
and a `/src/` folder with all your objects.
![](img/existing_git_after.png)