I commit from my Microsoft Visual Studio, however, I am now seeing that i now have two versions of two files

51 Views Asked by At

Error Image

I have issues with my commit, two files in my repo are being duplicated. My Logics.cs and Constants.cs were duplicated. I really do not know why that happened, I made the commit from my Microsoft Visual studio.

I do not want to delete manual, to not affect any of the files. Please assist.

1

There are 1 best solutions below

0
Mohamed amine ben hassen On

This is seams like you added the same files with different names or paths

you need to revert the commit in witch you added the duplicate

git revert "SHA hash of the commit"

then resolve the conflicts

finally commit again and push to your branch (please dont name another branch name )