git push 提示无权限

2019-02-28 20:01:29 +08:00
 hlayk

问题:git clone 项目( https/ssh 都试过)到本地 发现无法 pull/push 提示 fatal: 'origin/develop' 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. 尝试过的方法:重写生成密钥 修改 github 的配置 ps:但是用 sourcetree 托管项目都可以 pull push 有人遇到过这种问题吗?

2732 次点击
所在节点    GitHub
8 条回复
CEBBCAT
2019-02-28 21:35:31 +08:00
听起来咋那么玄乎呢?别是走近科学那种原因
CSwater
2019-02-28 22:02:52 +08:00
尝试先添加创建的身份信息?

ssh-add ~/.ssh/id_rsa
Windelight
2019-03-01 00:00:43 +08:00
请问是 GitHub 的那个 DownZIP 按钮下复制的链接吗?这英文很明显了 does not appear to be a git repository,appear 楼主应该明白什么意思吧,所以楼主可以直接全默认设置直接 git clone https://xxxxx.xxx/xxx/xxx.git 这样的
kisara
2019-03-01 00:06:52 +08:00
你确定这个 repo 你有权限修改?
ImPerat0R
2019-03-01 10:52:54 +08:00
把 remote 里的 https 改成 git
hlayk
2019-03-01 11:37:06 +08:00
@kisara 我自己的仓库
hlayk
2019-03-01 11:44:26 +08:00
@Windelight 项目是 fork 到我账户下的 可直接编译的 而且 clone 的时候 ssh 或者 https 都试过
hlayk
2019-03-01 11:45:34 +08:00
@ImPerat0R remote 就是 git 当然修改成 https 试过 也无效

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/539768

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX