Send an existing project to a remote server
I am using git. And I am trying to push an existing project to a remote server.
But I get this error every time:
Error when clicking on remote repository: Invalid link 'origin / master'
How do I resolve this error?
Screenshot of Visual Studio:
I got this error:
Niels@WSDH29 MINGW64 ~ (master)
$ git push https://verploe...
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream https://verpSANA.. master
and if i do this:
Niels@WSDH29 MINGW64 ~ (master)
$ git push origin https://verpNA...:master
error: src refspec https://verploeg... does not match any.
error: failed to push some refs to 'origin'
source to share
For some reason, the Visual Studio extension misinterprets the error message from the git command and / or server.
The actual problem is that you have incoming commits that need to be checked out and merged with your local commits before pushing. You cannot push multiple tips to the server.
If you needed to click a git button (other than Visual Studio), you will receive this error message:
! [rejected] master -> master (fetch first)
error: failed to push some refs to '.....'
So, take a fetch and then merge or pull to integrate the incoming commits with your local commits and then you can push.
source to share