zoukankan      html  css  js  c++  java
  • 解决“fatal: 'origin' does not appear to be a git repository...”

    用家里的电脑,pull下的代码,修改后,push 出现这种错误

    $ git push -u origin master
    fatal: 'origin' does not appear to be a git repository
    fatal: Could not read from remote repository.

    解决办法:

    原因是origin不存在或者是错的。查看远程仓库名称以及路径相关信息,如果没有,就填加远程库,如果是错的就删除后,再添加对的

    git remote -v                                           查看远程仓库详细信息,可以看到仓库名称

    git remote remove origin                       删除orign仓库(如果把origin拼写成orign,删除错误名称仓库)

    git remote add origin 仓库地址             重新添加远程仓库地址

    gti push -u origin master                      提交到远程仓库的master主干

     

    懒惰不会让你一下子跌到 但会在不知不觉中减少你的收获; 勤奋也不会让你一夜成功 但会在不知不觉中积累你的成果 越努力,越幸运。
  • 相关阅读:
    UVa -- 401 Palindromes
    ffplay播放PCM裸流
    VLC2.2.4命令参数
    kurento搭建以及运行kurento-hello-world
    webrtp官方demo运行
    webrtc相关概念
    linux下面用Mingw编译libx264
    learning webrtc 使用node.js
    ffmpeg转码指南
    rtmpdump禁用openssl
  • 原文地址:https://www.cnblogs.com/Rainingday/p/12364592.html
Copyright © 2011-2022 走看看