小编Tom*_*máš的帖子

无法撤消Git,Visual Studio中的文件更改

我将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: …
Run Code Online (Sandbox Code Playgroud)

git visual-studio visual-studio-2015

5
推荐指数
0
解决办法
1587
查看次数

标签 统计

git ×1

visual-studio ×1

visual-studio-2015 ×1