Push your source code to your Git Repository
Now you are ready to push your OpenInsight source out to your Git Repository. Form the OpenInsight IDE, go to Git, OI Source Control…:
Figure 30 – Selecting OI Source Control
Figure 31 – OpenInsight Git Inteface window
You are about to perform a Push from OpenInsight to Git. When you do a push you can choose which items to push much the same way you choose which items to include in an RDK.
To push your source to the Git Repository:
1. At Operation select “Perform Push to GIT”
2. You can use the Filter By to refine your selection
OpenInsight Git will build a list of all “pushable” items from your OpenInsight application and display the list in the box on the left. You can then choose which items to push by moving the items from the left box to the right box. Items in the right box will be pushed to the Git repository thereby overwriting the version in Git.
Select all the items by clicking the button. This will move all the items from the left box to the right box. Your window should then look something like this:
Figure 32 – Pushing all items to Git
Figure 33 – Pushing all items to Git
Now, click the Apply button. OpenInsight Git will push the selected items to your local Git repository.
OpenInsight Git maintains an errors log and a process log in the \logs directory beneath OInsight10. The error log displays any errors that occur during the last push or pull process. The process log maintains a list of the last 1000 successful push or pull processes.
Figure 34 – Git repository populated for the application STAR
Figure 35 – OpenInsight Windows
Figure 36 – ADD_NOTES window stored in Git
Figure 37 – Stored procedures in the STPROC folder
Figure 38 – ADD_NOTES stored procedure in Git
The oirepository directory contains the source for the repository types that you pushed to Git. The structure of this directory is a mirror of your OpenInsight repository structure. The repository records are included at the bottom of each item.
You can browse this directory and view your source code outside of OpenInsight.
Note: Git is now monitoring these files. If you make changes to these files then Git knows about it and tracks that as a change.