I have a git repo for a project. Since there were some issues in the codebase and it was hard to identify and fix, to meet the deadline I create a new project on my local machine and started to re develop the entire application. After developing, I ran the git init
command and then ran the git remote add origin <path to the original repo>
.
When I try to push the changes, git did not allow me to push the changes and the message I got was you need to at least perform a single commit
. I somehow had to secure my changes and created another temporary repo on the serve and finally pushed my changes to the new repo.
I need to move my new repo changes to my original repo and preferably on a new branch. How can I get this done? Please let me know the steps to get this done.