11 Comments, RSS

  1. Florian

    Did you know that a .gitignore file exists from Beckhoff? It appears in the project if you use the Multiuser feature which uses Git.

    According to this file you should add .TcGit to your list.

    • Multiuser is only available since 4024, and I guess it only shows up if you use multiuser. The official Beckhoff documentation for version control does not mention anything about the .TcGit file. Fact is, I don’t find any information of what this file is on the Beckhoff website whatsoever. It seems to mention that it’s a folder, but not anything more than that. I’d suggest you contact Beckhoff support to straighten this out and create a PR.

  2. Saele Beltrani

    May I suggest you something about ignoring some type of files in TC3 repos?
    Since version 4024.11 it’s possible to analyze “core dump” files in case of an exception, but only with the “CompileInfo” files. I think it’s better to keep track of them, especially in the case of a release version. (ref. here)
    Keeping tracks of libraries it’s not a job for the repo, but in many cases the ability to “Install libraries from project” it’s a lifesaver, especially when you open again old projects.

    • Hi! Yes, I’ve written about the core dump functionality previously. It seems it’s actually available even earlier than 4024.11 (even though documentation says so, it seems to have been available already in 4024.5). As written in the blog post, the “compileinfo” is created from the source files, so as long as you properly keep track of your software (which is the whole reason we have Git from the beginning) you can always re-create those files from source in order to use your coredumps.

      I agree with the “Install libraries from project”, but again, as long as you keep track of the original sources you should always be able to re-build. A comment in the .gitignore might be something?

  3. Tiago Bortolini Cunico

    WOW really nice, congratulation. It’s good to see the twincat community evolving. I just have one question, this doesn’t include the files for TF2000 projects, right?

  4. Andrew

    I’m using a standalone project and I think that *.tspproj.bak can also be part of the list of ignores since *.tsproj.bak is use for normal projects and they essentially do the same thing.

  5. Louise Stjern

    Hi Jakob!

    I’m working with TwinCAT3 and using TC3 HMI. As a beginner it was a big speed bump to figure out what files to add to the gitignore and I got some excellent help from Beckhoff themselves. Perhaps you already know, but for others coming here looking for .gitignore help, these are the parts that my gitignore-file has aside from the visual studio stuff. I’ll be super honest and say I don’t understand all of it, but it works for my project so far.

    ### TwinCAT ###
    # TwinCAT Stack Base

    # TwinCAT 3.1

    *.tpy
    *.tmc
    *.tsproj.bak
    *.plcproj.bak
    _Boot/
    _CompileInfo/
    _Libraries/
    _ModuleInstall/

    *.orig
    *.bak
    *.~u
    *.tclrs
    *.bk1
    *.bk2

    ## TC3 HMI-related files
    **/.engineering_servers/
    **/liveview_*
    **/*.cache
    **/*.db-shm
    **/*.db-wal
    **/*.pid
    **/tchmipublish.journal.json

    ### TwinCAT.OpenFrameworks Stack ###
    # ignore generated binaries
    # but not the data folder

    /bin/*
    !/bin/data/

    # general

    [Bb]uild/
    *.o
    [Dd]ebug*/
    [Rr]elease*/
    *.mode*
    *.app/
    .svn/

    # IDE files which should
    # be ignored

    # XCode
    *.pbxuser
    *.perspective
    *.perspectivev3
    *.mode1v3
    *.mode2v3
    # XCode 4
    xcuserdata
    *.xcworkspace

    # Code::Blocks
    *.depend
    *.layout

    # Visual Studio

    # Eclipse
    .metadata
    local.properties
    .externalToolBuilders

    # operating system

    # Linux
    # KDE
    .directory
    .AppleDouble

    # OSX
    .DS_Store
    *.swp
    *~.nib
    # Thumbnails
    ._*

    # Windows
    # Image file caches
    Thumbs.db
    # Folder config file
    Desktop.ini

    # Android

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.