Reputation: 2196
When I run it on my git repo this is what I get.
git pull .
From .
* branch HEAD -> FETCH_HEAD
Current branch rel_20121207 is up to date.
But when I run just git pull
it actually updates from the remote.
I would like to know what exactly happened when I ran git pull .
Upvotes: 5
Views: 784
Reputation: 4523
Ha, this one's fun. git pull
takes a remote name, or a file spec. You're giving it a file spec ('.
' means the current directory), so it's treating your current repo like a remote, and throwing your current HEAD into FETCH_HEAD. You're pulling your repo into itself; essentially it's doing nothing.
Upvotes: 9