0

Someone I work with committed corrupted files to the master git branch. My local version of master branch is ahead with changes to keep, while his changes should go in the trash. I am trying to resolve this in Source Tree, I must pull his crap before I can push my stuff, and then when I try to discard them I get bunch of errors like "error: path '...' is unmerged" and "error: pathspec '...' did not match any file(s) known to git."

user2154768
  • 890
  • 3
  • 8
  • 16

1 Answers1

0

From you comment, it seems you push directly to remote master. I'd suggest you create a new branch, revert that person's corrupted code; then merge your current work onto that branch, you can then push that branch.

Check the accepted answer here if it helps: How to revert Git repository to a previous commit?

Oladipo
  • 1,579
  • 3
  • 17
  • 33