• git Could not read from remote repository 解决


    错误:

    fatal: 'origin' 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.

    解决办法: 

    复制代码
    Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)
    $ git remote add origin git@gitserver:TestRedis.git
    Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)
    $ git push origin master
    ssh: gitserver: no address associated with name
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)
    $ git remote set-url origin git@github.com:afredlyj/TestRedis.git
    Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)
    $ git push origin master
    Enter passphrase for key '/c/Users/Elvis/.ssh/id_rsa':
    Counting objects: 8, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (7/7), 2.07 KiB, done.
    Total 7 (delta 2), reused 0 (delta 0)
    To git@github.com:afredlyj/TestRedis.git
       7bcfb1a..b02a2fe  master -> master
    Elvis@ELVIS-PC /f/gitrepo/TestJedis (master)
    复制代码
  • 相关阅读:
    如何编写vue的javascript代码结构
    二进制文件下载兼容写法
    swtich
    报错:Uncaught ReferenceError: JSENCRYPT_VERSION is not defined
    use application gateway to expose aks service over http/https
    quicksort和第k小元素问题
    quick sort
    高精度加法
    滑动窗口的最大值
    字典树
  • 原文地址:https://www.cnblogs.com/wuyifu/p/5980575.html
Copyright © 2020-2023  润新知