我有本地工作副本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
我不确定会有什么问题。
当前回答
我在Windows10系统中也遇到过同样的问题。
这里的问题是您在系统中的用户名。您可以使用
git credential-manager uninstall
git credential-manager install
如果它不起作用,那么你必须在你的系统中安装ubuntu,在应用商店中可以买到。
在那个ubuntu终端,我强制推送存储库,它在问我用户名和Passwordstrong文本后工作
其他回答
我也面临着同样的问题,正在解决
git add .
git commit -m "message"
git remote set-url origin https://YOUR_GITHUB_USER@github.com/aceofwings/RotairERP.git
then
git pull
我也面临着同样的问题
remote: Repository not found
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我卸载了git凭证管理器并重新安装了它,然后我就可以很容易地将它拉到存储库中。下面是命令
$ git credential-manager uninstall
$ git credential-manager install
我在VS code中遇到这个错误,因为我正在使用VS code git扩展。它将我的git凭证保存在Linux key-ring上。而我想从另一个帐户的git拉到储存库。 最简单的解决方案是打开Linux shell(不是在VS code中集成的那个),然后运行:
git pull origin master
这一次,它会问你Github的用户名和密码。
I was trying to clone a repo and was facing this issue, I tried removing all git related credentials from windows credentials manager after that while trying to clone git was asking me for my credentials and failing with error invalid username or password. This was happening because the repo I was trying to clone was under an organization on github and that organization had two factor auth enabled and git bash probably do not know how to handle 2fa. So I generated a token from https://github.com/settings/tokens and used the github token instead of password while trying to clone the repo and that worked.
我在Windows10系统中也遇到过同样的问题。
这里的问题是您在系统中的用户名。您可以使用
git credential-manager uninstall
git credential-manager install
如果它不起作用,那么你必须在你的系统中安装ubuntu,在应用商店中可以买到。
在那个ubuntu终端,我强制推送存储库,它在问我用户名和Passwordstrong文本后工作