zoukankan      html  css  js  c++  java
  • Git本地仓库与远程github同步的时候提示fatal: remote origin already exists 错误解决办法

    Git本地仓库与远程github同步的时候提示fatal: remote origin already exists 错误解决办法

    1、git在本地的电脑创建了仓库,要远程同步github的仓库。使用命令:$ git remote add origin https://github.com/yuanchaoyong/wxtest.git

    报如下错误:

    可以知道其实本地已经同步过一次的github版本库了。需要把原先的删除

    2、先删除远程 Git 仓库

    $ git remote rm origin

    3、再添加远程 Git 仓库,成功

  • 相关阅读:
    格式与布局
    iframe
    tp
    头信息
    php 文件下载
    socket
    Flex 布局2
    Flex 布局
    下拉刷新
    选取一种类中含有某一属性值得元素的集合
  • 原文地址:https://www.cnblogs.com/yuanchaoyong/p/10537412.html
Copyright © 2011-2022 走看看