Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么git说这些属性是无效的属性?_C#_Visual Studio_Github_Gitattributes - Fatal编程技术网

C# 为什么git说这些属性是无效的属性?

C# 为什么git说这些属性是无效的属性?,c#,visual-studio,github,gitattributes,C#,Visual Studio,Github,Gitattributes,我在github上为我的Visual Studio项目使用默认的.gittributes文件,但每当我尝试提交时,它都会抛出“nota valid attributes”错误 错误适用于第1、12、20、21和24行。最让我困惑的是,大多数返回错误的行都被注释掉了 这是文件 **###############################################################################** # Set default behavior to au

我在github上为我的Visual Studio项目使用默认的.gittributes文件,但每当我尝试提交时,它都会抛出“nota valid attributes”错误

错误适用于第1、12、20、21和24行。最让我困惑的是,大多数返回错误的行都被注释掉了

这是文件

**###############################################################################**
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
**###############################################################################**
#*.cs     diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
**# the diff markers are never inserted). Diff markers may cause the following** 
**# file extensions to fail to load in VS. An alternative would be to treat**
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
**###############################################################################**
#*.sln       merge=binary
#*.csproj    merge=binary
#*.vbproj    merge=binary
#*.vcxproj   merge=binary
#*.vcproj    merge=binary
#*.dbproj    merge=binary
#*.fsproj    merge=binary
#*.lsproj    merge=binary
#*.wixproj   merge=binary
#*.modelproj merge=binary
#*.sqlproj   merge=binary
#*.wwaproj   merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg   binary
#*.png   binary
#*.gif   binary

###############################################################################
# diff behavior for common document formats
# 
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the 
# entries below.
###############################################################################
#*.doc   diff=astextplain
#*.DOC   diff=astextplain
#*.docx  diff=astextplain
#*.DOCX  diff=astextplain
#*.dot   diff=astextplain
#*.DOT   diff=astextplain
#*.pdf   diff=astextplain
#*.PDF   diff=astextplain
#*.rtf   diff=astextplain
#*.RTF   diff=astextplain

我们看不到行号,你能更好地突出显示问题行吗?是的,我只是将它们全部加粗。每个问题行中的第一个字符或两个字符的星号就是问题所在。@DavidTansey这些星号只存在于将行加粗的格式中抱歉。您可以使用记事本++或类似工具来检查这些有问题的行上存在什么类型的行尾吗?i、 e.行尾是
CRLF
还是仅
LF