Manage Codesys Git project, inside of a parent git repository

codeX
2022-04-20
2022-04-22
  • codeX - 2022-04-20

    Any ideas how I can manage/use Codesys Git inside of a parent git repository without using submodules?

    Here an example of the repository's structure:

    CodesysProject/
                 .git/
                 codesys.project
                 git-codesys/
                           .git/
                           files
                 folder/
                          file.x
                          file2.y
                 folder 2/
                          file3.x
                          file4.y                 
    

    Basically, I want manage the versions of my codesys.project using Codesys Git, and keep track of files using the parent git structure (CodesysProject/.git) and commit/push everything inside of the same repository.

    Thanks,

     
  • hermsen

    hermsen - 2022-04-20

    This is absolutely possible but only using an external git client, NOT via CODESYS git v1.1.0.0.

    so use any (visual) git client you see fit however do not perform any actions on the database itself or within the project directory of the codesys project.

    For some examples of this you could check our SparkplugB Git repo.

     
    • codeX - 2022-04-22

      Hi @hermsen , thanks for your reply!

      I believe you are referring to this repository https://forge.codesys.com/lib/cobolt/project/ci/main/tree/ or am I wrong?

      I'm using a external git client, however my when I try to add the codesys git project as part of my actual repository is flagged as a submodule. I found this workaround (http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb) however the .git from codesys is ignored.

      Another thing I would like to mention is that my remote Git repository doesn't support HTTPS, only SSH.

      Thanks for your support,

       

Log in to post a comment.