...
Plan change with gatekeeper.
Upload running code from PLC (assumes TwinCAT is configured correctly to download source when boot project is created).
Compare uploaded code with the latest in gitthe Bitbucket repository. Resolve any differences, favoring the uploaded running code in case of discrepancy. If the discrepancies are intended to be part of the running code, include them in the change plan, possibly handling them separately first before the main change is implemented.
Implement changes and test.
When test is satisfactory, write boot project, ensuring that source code is downloaded to PLC.
Store modified code in Bitbucket with a descriptive comment and link to any associated Jira tickets.