Skip to main content

Git error: fatal: No such remote 'origin'

Execute the following commands in git bash:

  1.  git remote add origin <url>

  2. git remote set-url --push origin <url>

  3. git push -u origin master

Comments