I have a Git working directory that I would like to use to create a new master, keeping the existing commit history (etc.) intact. The reason for this is that my original remote master has become corrupt, and the working directory has had updates made to it since.
I've tried a Git clone of the working directory, but I am unable to push to the cloned directory. A get a similar problem if I do a straight copy and paste of the working directory to my Git server.
How do I convert my local working directory to a new master on a remote server?
I'm a newbie when it comes to Git, so a simple explanation without too much jargon would be really helpful.