Maison  >  Questions et réponses  >  le corps du texte

github - 关于 git remote origin 的问题

环境是 win7 64位

用git进任意clone下来的文件夹后输入指令git remote -v后都有两个remote,分别是originupstream

运行很多脚本时会报出以下错误

fatal: remote origin already exists.

网上说的解决方法是输入指令git remote rm origin来删除origin,但是我输入指令后报出以下错误

error: Could not remove config section 'remote.origin'

现在不知道如何是好,希望大家帮助。

PHP中文网PHP中文网2738 Il y a quelques jours537

répondre à tous(1)je répondrai

  • ringa_lee

    ringa_lee2017-04-22 09:01:50

    git clone.......... Après avoir exécuté la copie à distance maître d'origine git pull Exécutez cette commande pour fusionner la branche avec la synchronisation à distance Soumettez plus tard et il ne devrait y avoir aucun problème

    répondre
    0
  • Annulerrépondre