Tag Archives: remote library link error

GaiHab local warehouse and remote library link error [How to Fix]

  • Run the command in the local warehouse
    Administrator@DESKTOP-NBQP9GO MINGW64 /d/learngit (master) $ git remote add origin [email protected]:usename/xxx.git
  • If there is an error
  • error: remote origin already exists.
  • Administrator@DESKTOP-NBQP9GO MINGW64 /d/learngit (master) $ git remote rm origin //remove and then continue...
  • Pull remote update push
  • //After the first remote association, you must first pull a remote update.
  • Administrator@DESKTOP-NBQP9GO MINGW64 /d/learngit (master) $ git pull
  • Push local library to remote
  • Administrator@DESKTOP-NBQP9GO MINGW64 /d/learngit (master) $ git push -u origin master
  • Note: Add -u to the first push to facilitate future push or pull

    git push origin master