Ok, this is a weird one and I have no clue how to get arround this problem. I'm using the following setup:
I been working with this for a while and for the first time something strange happens when I add or remove an image from a web project content/images directory.
Here are steps to reproduce this behavior in my project. Don't know if this also happens with other projects.
C:\\Projects\\P2G\\P2G>git status
On branch wake_on_lan
nothing to commit, working tree clean
git status On branch wake_on_lan Your branch is up to date with 'origin/wake_on_lan'.
Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory)
modified: Sources/WUR.P2G.WEB/Wur.P2G.Web.csproj modified: Sources/Wur.P2G.Web/Wur.P2G.Web.csproj
no changes added to commit (use "git add" and/or "git commit -a")
Git status tells the .csproj is modified (in red) but no changes are staged. Can't undo the change with VS. Can't checkout -- .csproj with git command line Gitkraken says there's a conflict but cant discard changes either
After this the only way I found so far to restore at least the project is to make a new clone from the repo.
I read somewhere I had to add *.csproj merge = union to the .gitattributes file but that makes no difference.
It seems like you have the file duplicated in the repository with different cases. You can verify it by command git ls-tree -r HEAD
.
You should remove one of them. Easiest way to do it is to use a Linux computer or some web interface. It should be possible at Windows somehow, but I cannot say how without trying it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.