git - SourceTree-git : fatal: remote error: Repository not found

标签 git github atlassian-sourcetree

我刚刚在工作中注册了一个 github 帐户并创建了一个新的存储库。我在命令行上运行了几个 git 命令,一切正常。

1. git init 
2. git add .
3. git commit -m "first commit"
4. git remote add origin https://github.com/username/project.git

然后,当我从 sourcetree 添加工作副本并单击“获取”按钮时,我收到“错误:未找到存储库”。我尝试推 pull ,我得到了同样的错误。我已经将 sourcetree 与我的 bitbucket 和 github 存储库一起使用了几个月,但我从来没有遇到过这个问题。有没有人遇到过类似的问题?

最佳答案

遇到了同样的问题。在我的案例中,原因是我在命令行上通过 https 进行了身份验证,但随后通过 oAuth 使用了 sourceTree。在我的帐户设置中将身份验证类型设置为“基本”很有帮助。

关于git - SourceTree-git : fatal: remote error: Repository not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21564211/

相关文章:

git - Sourcetree 的自定义操作保存在哪里?

git - Bitbucket 无法 checkout Sourcetree 中的存储库

git checkout 在 --assume-unchanged 文件上抛出错误

git - 如何强制 Visual Studio 刷新 Team Explorer-Branches 中的远程 git 分支列表?

git - 无法在Gradle中使用Curl访问Github API

github - 使用 Travis-CI 推送 Git 存储库

gitlab - 如何为gitlab集成sourcetree

git - 我如何从原始 repo 的克隆推送到我的 fork ?

git - 我可以 pull 到我所在的分支以外的分支吗?

python - 如何在 github 工作流程的下一步中设置和访问 python 代码的响应