我创建了一个github存储库,然后进入我电脑上的本地并执行了git init
,我以为我做的一切都是正确的,但现在当我推送时,我得到了一个错误。我不知道如何链接我的git本地和我的github。
我已经和git config -l
确认过了,一切看起来都很正常。
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
发布于 2019-05-20 20:59:04
您必须将Github存储库添加为本地存储库上的远程存储库。
git remote add origin "Your remote repository url"
编辑如果远程源已存在,请尝试:
git remote set-url origin "Your remote repository url"
https://stackoverflow.com/questions/56222338
复制