Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Commit objects to Git – PB Docs 2021 – PowerBuilder Library

Commit objects to Git – PB Docs 2021

Commit objects to Git

After you create a new object or change an existing object on
your local workspace, you can commit the object to the Git source
control system so that other developers can reach it. Similar to how
you add a workspace to Git, you commit the object in two steps: 1)
upload the object to the local repository; 2) push the object from the
local repository to the server repository.

Note that if conflicts are
detected, make sure you resolve the conflict before committing the
object.

To commit an object to the Git source control system:

  1. Right-click the object (or the library that contains the
    object) in the System Tree and select Git Commit from the pop-up
    menu.

  2. In the commit dialog box that displays, input a comment and
    click OK to confirm committing the object.

    PowerBuilder uploads the object to the repository on the
    local computer. After the object is uploaded successfully, the
    icon in front of the object will change from a plus sign
    (sccicon1.gif) to a green dot (sccicon5.gif), indicating that the object on the local
    computer is in sync with the object on the local repository.
    Note that if you have only
    committed some (not all) of the objects, performing Refresh may
    remove the uncommitted objects.

    Now you can proceed to push the objects from the local
    repository to the server repository.

    To push objects to the server repository, you can only push
    from the workspace, as described in the next step.

  3. Right-click the workspace in the System Tree and select Git
    Push from the pop-up menu.

    PowerBuilder pushes the new or changed objects from the
    local repository to the server repository.

    If conflicts are detected, you will be prompted in the
    output view and will have to resolve the conflict manually before
    you can push the object to the server repository. See the section called “Resolve conflicts” for details.

If you remove an object from your local workspace, you use the
same instructions as above to commit the change and remove the object
from the Git source control server.

The output (including error and warning) of a variety of
operations (Git Commit, Git Pull, Git Revert, and Refresh) displays in
the Output window. Currently, lines in the Output window provide no
links to open the object when you double-click on that line, and
although the pop-up menu provides the options Edit and Edit Source,
they will not open an object in a painter or the Source editor.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x