hlayk
V2EX  ›  GitHub

git push 提示无权限

  •  
  •   hlayk · Feb 28, 2019 · 4177 views
    This topic created in 2807 days ago, the information mentioned may be changed or developed.

    问题: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 有人遇到过这种问题吗?

    8 replies  •  2019-03-01 11:45:34 +08:00
    CEBBCAT
    CEBBCAT
    Feb 28, 2019 via Android
    1
    听起来咋那么玄乎呢?别是走近科学那种原因
    CSwater
    CSwater
    Feb 28, 2019
    2
    尝试先添加创建的身份信息?

    ssh-add ~/.ssh/id_rsa
    Windelight
    Windelight
    Mar 1, 2019 via Android
    3
    请问是 GitHub 的那个 DownZIP 按钮下复制的链接吗?这英文很明显了 does not appear to be a git repository,appear 楼主应该明白什么意思吧,所以楼主可以直接全默认设置直接 git clone https://xxxxx.xxx/xxx/xxx.git 这样的
    kisara
    kisara
    Mar 1, 2019 via iPhone
    4
    你确定这个 repo 你有权限修改?
    ImPerat0R
    ImPerat0R
    Mar 1, 2019
    5
    把 remote 里的 https 改成 git
    hlayk
    hlayk
    OP
    Mar 1, 2019
    6
    @kisara 我自己的仓库
    hlayk
    hlayk
    OP
    Mar 1, 2019
    7
    @Windelight 项目是 fork 到我账户下的 可直接编译的 而且 clone 的时候 ssh 或者 https 都试过
    hlayk
    hlayk
    OP
    Mar 1, 2019
    8
    @ImPerat0R remote 就是 git 当然修改成 https 试过 也无效
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3641 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:18 · PVG 13:18 · LAX 21:18 · JFK 00:18
    ♥ Do have faith in what you're doing.