I am trying to push my project files to my repository. But when I do that I get errors as in following screenshot.
I had a repository in that project file before and I deleted it. Now I have created another repository with a different name in that project file. But I get these errors now. Please tell me what I should do.
You can rename a repository if you're either an organization owner or have admin permissions for the repository. When you rename a repository, all existing information, with the exception of project site URLs, is automatically redirected to the new name, including: Issues.
Conclusion. In this tutorial, you learnt how you can easily change your Git remote URL (commonly named origin) by using the “git remote set-url” command. You also learnt that you can change it using a password protected SSH address.
Run the git remote set-url --add --push origin git-repository-name command where git-repository-name is the URL and name of the Git repository where you want to host your code. This changes the push destination of origin to that Git repository.
To update the origin to the new repository.
git remote set-url origin <new-url>
In your case, paste the command below if you updated your remote repo as per name suggested.
git remote set-url origin https://github.com/BSThisarasinghe/Sabra-Medical-Center.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With