Most family tree programs have a 'search duplicates' function.
You don't mention the local program you are using, but have a look around the 'tools' menu and you'll probably find something.
When you get a match, you can usually select individual facts to keep or discard (or keep them separate, since they aren't really the same person).
Once you resolve the duplicates, you can upload the merged result.