使用 Visual Studio、Bitbucket 和 SourceTree 的新文件未添加到项目中
New files using Visual Studio, Bitbucket and SourceTree are not added on project
我在 SourceTree、Bitbucket 和 Visual 的集成方面遇到了一个恼人的问题 Studio.When 我在我的项目中创建了一个文件夹,class 或 Reference 并推送到 bitbucket,它们不会自动添加到其他当 pushed.They 在文件夹中但未添加到 project.I 时的项目已经在 Stack Overflow 中寻找答案,但没有人帮助 me.As 你可以在图像中看到,"Teste"我的文件夹不包括Visual Studio project.How 搞清楚了吗?谢谢
Folder
Visual Studio Project
这可能是因为文件未包含在 .csproj
中,这可能是因为 git 提交的顺序,您可以更改提交的顺序,或重建您的项目在提交之前,这将自动在 .csproj
中添加 类
您还可以注意 .gitattributes
文件以使用稍微不同的合并驱动程序。
*.csproj -text merge=union
*.sln -text merge=union`
如果您想了解更多信息,可以单击 Here。
我在 SourceTree、Bitbucket 和 Visual 的集成方面遇到了一个恼人的问题 Studio.When 我在我的项目中创建了一个文件夹,class 或 Reference 并推送到 bitbucket,它们不会自动添加到其他当 pushed.They 在文件夹中但未添加到 project.I 时的项目已经在 Stack Overflow 中寻找答案,但没有人帮助 me.As 你可以在图像中看到,"Teste"我的文件夹不包括Visual Studio project.How 搞清楚了吗?谢谢
Folder
Visual Studio Project
这可能是因为文件未包含在 .csproj
中,这可能是因为 git 提交的顺序,您可以更改提交的顺序,或重建您的项目在提交之前,这将自动在 .csproj
您还可以注意 .gitattributes
文件以使用稍微不同的合并驱动程序。
*.csproj -text merge=union
*.sln -text merge=union`
如果您想了解更多信息,可以单击 Here。