Tech Articles


Working with Branches in Git for PowerBuilder


One of the reasons that people choose to use Git is how easy it is to do branching. Unfortunately, PowerBuilder hasn't implemented it yet. But that doesn't stop you from using this feature if you don't mind taking a few extra steps. This article shows you how you can work on different branches with the help of TortoiseGit. 

If you are not familiar with the basic flow of setting up PowerBuilder with Git, please check this article first PowerBuilder 2017 R2 New Feature: Git source control support

Suppose you are working on the master branch and now need to work on the dev branch

  1. Close PowerBuilder.
  2. Stash your changes in master branch using TortoiseGit.
  3. Switch/Checkout the dev branch. 
  4. You can double click on the pbw file to start PowerBuilder. Make sure you click Refresh to get all objects from the dev into the IDE.
  5. You can do your development in the IDE and you can also use the Git Commit in the IDE to commit to dev branch.
  6. When you are ready to submit your commits in dev, you need to use TorotiseGit to push it to the server.
  7. You can switch back to the master branch using the same method mentioned above.
  8. Use Stash Pop (if you need to apply the last stash) or Stash List > Stash Apply to restore the previous status of your master branch.  
  9. Restart you PB and do a Refresh and then you can work on the master branch again. 
Comments (0)
There are no comments posted here yet

Find Articles by Tag

Performance Design Installation COM Deployment PowerServer Web Jenkins OrcaScript Debugging MessageBox iOS Sort ODBC SOAP Syntax SnapObjects PowerBuilder (Appeon) 64-bit Authentication DataType Android Web API Error Database Table IDE CrypterObject PowerScript (PS) Branch & Merge Filter PowerBuilder TLS/SSL JSONGenerator Graph Configuration Interface PBDOM Oracle .NET DataStore PowerBuilder Compiler SqlModelMapper RibbonBar Builder Expression SDK Class NativePDF Window WebBrowser Event Handler JSONParser PostgreSQL Export CI/CD Azure RibbonBar Open Source Database Object Repository DevOps Transaction Variable TortoiseGit Database Table Data Database Profile Database Connection REST Database Table Schema OAuth 2.0 Resize DataWindow JSON Windows 10 Icons PBNI Testing BLOB SQL Elevate Conference GhostScript Array UI Modernization XML 32-bit HTTPClient SQL Server PostgreSQL ODBC driver Stored Procedure Excel Database Painter DragDrop Event UI DataWindow Web Service Proxy Linux OS OAuth TFS Import Trial PBVM PDFlib Debugger Bug RESTClient UI Themes External Functions InfoMaker OLE Event Handling SVN Source Code Service Windows OS .NET Assembly .NET Std Framework File Automated Testing Encryption JSON DLL Validation Debug Visual Studio PFC Encoding RichTextEdit Control Mobile Menu API Messagging Application Text Script WinAPI License C# Charts Authorization ActiveX Model Icon CoderObject PDF Data Migration SqlExecutor Git Import JSON SnapDevelop Platform PowerServer Mobile TreeView Outlook Database Export JSON Source Control