Error "'origin' does not appear to be a git repository..." Is Reported When the Git Push Command Is Executed
Symptom
Error 'origin' does not appear to be a git repository... is reported when you run the following command:
git push --set-upstream origin feature1
Analysis
origin does not appear to be a git repository.
Solution
Verify the name and path of the remote repository, delete the false name and add another remote repository. Run the following commands:
- Check the details of the remote repository, including its name and associated address.
git remote -v
- Delete the false origin repository.
git remote remove origin
- Add another remote repository address.
git remote add origin
- Commit the code file to the master branch of the remote code repository again.
git push -u origin master
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot