Git Error: "error: The following untracked working tree files would be overwritten by merge"


Question: I am trying to merge a Branch into another Branch using Git Command but receiving the error "error: The following untracked working tree files would be overwritten by merge. Please move or remove them before you merge".

My question is how do you remove the content in the folder that is causing Merge Issues in Git?


Login to See the Rest of the Answer

Answer:
One way I resolved this error is by copying the content of the Master Branch (except .git and .vs folders) and pasting them in another folder for backup. Then type git merge YourBranchHere 
This will bring all your files from YourBranchHere onto the Master Branch, basically clean or overriding every content file on Master with content file on YourBranchHere.

I hope this helps you.







For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]