Replace All Code in Repository with New Version?

For purposes of tracking down a bug, I created a new project folder and slowly built the entire application back up, feature by feature, until the app had been recreated in the new project folder. The bug is gone and I’d like to replace all the files in the repository with the files from the new project folder. What is the correct way to do this?

Thanks in advance to all for any info.