我有本地工作副本SourceTree。和所有的操作工作得很好,我可以简单的获取,推,拉等通过SourceTree。我只需要在SourceTree中不存在的force push。
我打开终端使git按-f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我不确定会有什么问题。
我有本地工作副本SourceTree。和所有的操作工作得很好,我可以简单的获取,推,拉等通过SourceTree。我只需要在SourceTree中不存在的force push。
我打开终端使git按-f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我不确定会有什么问题。
当前回答
在Visual Studio中从Github克隆时,点击Github链接上的“浏览存储库”选项,它将要求登录。
其他回答
我通过删除.git文件(隐藏文件夹),然后再次上传解决了这个问题。
在我们的案例中,这只是一个在github中授予写权的案例。最初用户只有读权限,它给出了这个错误。
试试这个,对我很管用。
git remote rm origin
git remote add origin https://github.com/your-username/{{project-name}}.git
因为您可能没有首先将远程git存储库标识到您的终端。
git remote set-url origin https://github.com/MyRepo/project.git
然后,
git add .
git commit -m "initial commit"
git push origin master
这可能是一个重叠的问题,你在同一时间配置不同的帐户。
试着检查:
git config user.name git config user.email
检查是否与远程回购相同。
查看repo git remote -v