I'm working on a small React project and have pushed its old version to the GitHub a couple days ago to this repo: Old repo
Since that time, I've made multiple changes to my project, so I decided to create a new repo and push the latest version of the app there.
The problem is that the old version of the project has been pushed to my new repo, I don't understand why. Can you help me to resolve this?
Please, tell me what is the mistake - why I'm pushing the old version of my app that even not exists on my computer?
Here is a link to my new repo: New repo
Steps I've made in Windows Powershell to push the project to new repo:
git init
git add -A
git commit -m 'Added my project'
git remote rm origin
git remote add origin https://github.com/Leocete/react-test-app.git
git push -u origin master
You're still in the middle of a rebase. It stopped rebasing since there was/are conflicts.
Please fix your conflicts.
Then run git add -A && git commit -am "your message here"
After that you need to continue
your rebase by using: git rebase --continue
If all went well you rebased your branch and are able to push the changes with git push -f
. This will force push your branch since you've diversed from remote.. as @vincentm already said be warned since you're changing the history line.