I was trying to pull changes from upstream into my fork. I tried git fetch https://github.com/someuser/someproject
, but it stubbornly refused to do anything. It just said something totally cryptic and did nothing, namely:
From https://github.com/someuser/someproject
* branch HEAD -> FETCH_HEAD
But the moment I added the URL as a named remote, things changed:
> git remote add upstream https://github.com/someuser/someproject.git
> git fetch upstream
remote: Counting objects: 340, done.
remote: Compressing objects: 100% (268/268), done.
remote: Total 340 (delta 145), reused 18 (delta 16), pack-reused 44
... etc ...
So what's the difference? Why did it do nothing when I specified a remote without adding it first? And what exactly was it telling me when I tried to fetch from the URL?