Hi
I am learning how to use git with our powerbuilder 2019 R3 (freshly migrated) app.
I've successfully created a new git repo in bitbucket for this powerbuilder app. I did a few tests and it worked fine.
But a separated repo is not the ideal scenario for us. What we would like to add our powerbuilder app to an existing repository (that contains multiples C# and angular app, because our powerbuilder app is mixed with winform and angular pages). This way we cant keep all changes for a specific feature in a single branch.
I would like to add the powerbuilder app in a folder \Powerbuilder in the root git repository. I'm not sure how to do the initial commit on this... and can't get it to work.
What I did for a separate repo is that I just added the pbl in a folder, then "Add to source control", but I can't do that for my existing multiple app repo, because the git repo already exists... and if I select "connect to workspace", then i get an error while pulllig the object "Failed to perform because the objects already exists"
So my question is : Is there a way to add a powerbuilder app to a repo containing other app? If, yes how to do it correctly ?
Thanks
In order for PB IDE to enable Git, you will need the hidden .git folder and the ws_objects folder and the pbw file all in the same folder. The PBT and PBL files can be put in a sub-folder. For example, you could have a folder structure like below.
.\.git
.\csharp_project
.\ws_objects
.\pb_ws.pbw
.\Powerbuilder
.\Powerbuilder\a.pbt
.\Powerbuilder\a.pbl
.\Powerbuilder\b.pbl
...
AFAIK, if you put the pbw file in a sub-folder, Git will not be enabled in PB IDE. So I suggest that you check if there is a hidden .git folder in your Powerbuilder folder to make sure you didn't accidentally create a nested git repository.
Regards,
Tom Jiang