【问题标题】:What are these TLOG files? Should these be part of my source control?这些 TLOG 文件是什么?这些应该成为我的源代码控制的一部分吗?
【发布时间】:2017-01-01 17:31:52
【问题描述】:

我是源代码管理新手。

我不记得在今天之前看到过这些 TLOG 文件。这是我的存储库现在在 Team Explorer 中的样子:

还有 TortoiseGit

我需要这些作为我的存储库跟踪的一部分吗?

【问题讨论】:

    标签: tortoisegit team-explorer


    【解决方案1】:

    这些是来自 Visual C++ 编译器的日志,不应成为源代码控制的一部分。通过.gitignore将它们排除在git中:

    # Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
    [Bb]in/
    [Oo]bj/
    
    # mstest test results
    TestResults
    
    ## Ignore Visual Studio temporary files, build results, and
    ## files generated by popular Visual Studio add-ons.
    
    # User-specific files
    *.suo
    *.user
    *.sln.docstates
    
    # Build results
    [Dd]ebug/
    [Rr]elease/
    x64/
    *_i.c
    *_p.c
    *.ilk
    *.meta
    *.obj
    *.pch
    *.pdb
    *.pgc
    *.pgd
    *.rsp
    *.sbr
    *.tlb
    *.tli
    *.tlh
    *.tmp
    *.log
    *.tlog
    *.vspscc
    *.vssscc
    .builds
    
    # Visual C++ cache files
    ipch/
    *.aps
    *.ncb
    *.opensdf
    *.sdf
    
    # Visual Studio profiler
    *.psess
    *.vsp
    *.vspx
    

    【讨论】:

    • 谢谢。我刚刚尝试过,但它似乎仍然包含此文件夹中的文件:D:\My Programs\2017\MeetSchedAssist\Meeting Schedule Assistant\Release\Meeting .56FC3877.tlog
    • 如果它们已经是存储库的一部分,请先删除它们并提交/推送更改
    • 如果可以的话,还有一个问题:bitbucket 网站上的现有提交呢?是否可以清除它们以使这些被忽略的文件甚至不再存在于历史记录中?
    • 对不起,我不知道。我总是在第一步设置忽略
    • @magicandre1981,为什么 .tlog 不包含在您的 .gitignore 中?
    猜你喜欢
    • 1970-01-01
    • 2021-11-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-10
    • 2022-01-15
    相关资源
    最近更新 更多