【发布时间】:2016-10-15 06:40:05
【问题描述】:
我有带有本地工作副本的 SourceTree。所有操作都很好,我可以通过 SourceTree 简单地获取、推送、拉取等。我只需要进行 SourceTree 中不存在的强制推送。
我打开终端做了 git push -f
remote: Repository not found.
fatal: repository 'https://github.com/MyRepo/project.git/' not found
我不确定可能是什么问题。
【问题讨论】:
-
您确定这仅适用于
git push -f,但适用于常规推送、拉取和获取? -
就我而言,我在使用 git clone github.com/privaterepo 时遇到了这个错误。我开始输入一个新问题,因为它与 SourceTree 或 git push 无关,但问题本身已经很笼统了。
-
对于使用个人访问令牌访问的任何其他人,请签入
Settings -> Developer settings -> Personal access tokens并确认已选中write.packages。这是我的问题。 -
kevin_theinfinityfpnd 的答案对我有用。谢谢。
标签: git github atlassian-sourcetree