Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

github - I renamed my repository and I am having trouble updating my files

Terminal screenshot of The error I am getting:

Terminal screenshot of The error I am getting

I updated the name of my repository on git hub after I had already pulled everything onto my local drive. I now am having trouble updating my local drive with the changes.

when I enter the command:

> git push origin master

I get the following error:

> error: src refspec master does not match any

> error: failed to push some refs to 'https://github.com/ktrudickm/Classwork.git'

I am relatively new to this so this may be an easy fix but I am sort of stuck.

question from:https://stackoverflow.com/questions/65853272/i-renamed-my-repository-and-i-am-having-trouble-updating-my-files

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The repository info is hidden in the .git folder of your project. Open .git/config and edit the url to match the new repository.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...