Using Git with VB6

前端 未结 7 616
轻奢々
轻奢々 2020-12-05 08:00

Our company has a large codebase in VB6, and we currently use VSS which, for all that we hate about it, at least integrates into the VB6 IDE.

My own team, which is u

7条回答
  •  鱼传尺愫
    2020-12-05 08:24

    You have to create the file .gitattributes to use windows line endings (crlf) because git was born in unix.

    # Declare files that will always have CRLF line endings on checkout.
    *.vbp text eol=crlf
    *.frm text eol=crlf
    *.cls text eol=crlf
    *.bas text eol=crlf
    *.dsr text eol=crlf
    *.ini text eol=crlf
    
    # Denote all files that are truly binary and should not be modified.
    *.frx binary
    *.exe binary
    *.dll binary
    *.ocx binary
    

    Also create .gitignore file with the following lines:

    ## Ignore Visual Studio temporary files, build results, and
    ## files generated by popular Visual Studio add-ons.
    
    # User-specific files
    *.vbw
    *.tmp
    *.scc
    *.dca
    

提交回复
热议问题