SAP Business Application Studio provides a graphical user interface for executing Git commands and managing your source control and versioning.
The Git view consists of three major sections. The top section is for authoring the commit messages. It also provides access to a couple of basic Git commands.
After this, you find the commit section, which lists the changed files by their name and separates them in two groups:
-
Staged Changes - A list of the files that have been staged. Click
to open the selected file, or
to unstage it.
-
Changes - Files listed under the Changes section contain unstaged changes. Each file name is followed by a path to its parent directory and an indicator describing the status of the change.
Click
to open the selected file,
to stage the file, or
to refresh it.
The files can be in any of the following statuses:
- A - A new file that has been staged.
- U - An unstaged file. An unstaged change can be reverted by clicking on the Discard Changes action next to the file location.
- M - A modified file. Double-clicking on a modified file will open it in a diff editor. The read-only editor in the first section shows the state from the index. The second section of the editor reflects the state of the working tree, and it lets you to further modify the file.
- C - A copied file (if blue) or a conflicted file (if red).
- D - A deleted file.
At the bottom of the Git view you can see the last commit section, where a description of the most recent commit is displayed.
After staging the desired files and specifying the commit message, the changes can be committed to the repository. After a successful commit, the Last Commit section is automatically updated.