Here is the problem:
Whenever I do
$ git pull 'https://github.com/username/reponame.github.io.git'
followed by the url I get no problems but when I do
git pull origin master 'https://github.com/username/reponame.github.io.git'
followed by the url it returns
fatal: Invalid refspec 'https://github.com/username/reponame.github.io.git'
What does this mean and how should I go about fixing it?
If you have already established remote-tracking branches (i.e.
git clonedoes this automatically) and want to usegit pullwith the intention of grabbing and merging the latest commits for the current branch off the remote repository, I believe that executing the following will suffice:To achieve the same effect with the inclusion of a refspec (unnecessarily long-winded):
You are receiving that error because the provision of a URL is not how the refspec is formatted.
For further details on how the refspec works and its syntax, consult this chapter from the wonderful Pro Git book. Hope that helps!