Tom*_*máš 5 git visual-studio visual-studio-2015
我将Visual Studio 2015和git与Visual Studio在线一起使用。我的问题是,当我在分支之间切换时,一些临时文件会出现在我的暂存区中,并且我无法撤消对这些未修改文件的更改。当我在VS中单击“与未修改的比较”时,我收到来自kdiff3的消息,“文件A和B是二进制相等的”。
我试图在VS中“撤消更改...”,但没有任何结果
我也尝试了命令:
git reset --HARD
git checkout branchname -f
git clean -f -d
git config core.autocrlf = true
Run Code Online (Sandbox Code Playgroud)
我什至无法隐藏这些更改。当我这样做时,它们再次出现在高潮中。
该项目的所有开发人员都使用Windows 10 vs2015。
这是我的“ git status”结果
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: Source/ClientWeb/Controllers/NoticeController.cs
modified: Source/Database/dbo/Stored Procedures/AddNoteEventType.sql
modified: Source/Database/dbo/Stored Procedures/FixOfficialAddresses.sql
modified: Source/Database/dbo/Stored Procedures/RecalculateLoanPreceptComponents.sql
modified: Source/Database/dbo/Stored Procedures/RemoveCommissions.sql
modified: Source/Database/dbo/Tables/BankAccounts.sql
modified: Source/Database/dbo/Tables/CommissionWithdrawalLevels.sql
modified: Source/Database/dbo/Tables/ExceptionReports.sql
modified: Source/Database/dbo/Tables/OfficialAddresses.sql
modified: Source/Database/dbo/Tables/Persons.sql
modified: Source/Database/dbo/Tables/Users.sql
modified: Source/Database/dbo/Views/vw_PrintJobs.sql
modified: Source/Web/Models/Customer/PaymentAtBranchListModel.cs
modified: Source/Web/Views/Home/Index.cshtml
modified: Source/Web/Views/Shared/EditorTemplates/BankAccountModel.cshtml
no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)
我在Visual Studio Online中发现的一件事是diff向我显示消息“所选文件仅在空白处有所不同”
我是git的新手,我不知道应该怎么设置以避免该空白问题。我现在真的很绝望,只有这样,我才能做的就是提交这些“虚假更改”。
编辑
让我们看一下文件Source / ClientWeb / Controllers / NoticeController.cs
NoticeController.cs历史,更改,kdiff3
该文件的最后更改时间为23.7.2015。从那时起,我和同事都没有碰过这个文件,现在它出现在我的更改中。为什么会这样呢?
| 归档时间: |
|
| 查看次数: |
1587 次 |
| 最近记录: |