Reputation: 1734
It is NOT a duplicate of (almost;because stackoverflow wouldn't allow that)exact title
Git Pull - Everything up to date, but it's not
I'm missing two tags (Linux kernel v3.9-rc4 and v3.9-rc5 specifically)and the changes that they come with. I have tried too many commands and ran out of gray cells.
git reset
git reset --hard
git checkout HEAD
git pull
git fsck
git reset --hard HEAD
Q:Is it possible that my ISP have messed up with their caching(because they have done so) and cause all this?
Upvotes: 9
Views: 10287
Reputation: 181
mpontillo wrote Apr 3 '13 at 18:05
git fetch --tags
If you have an upstream, use
git fetch --tags --all
--tags
means "all tags"
--all
means "all remotes" (i.e. origin and upstream)
Upvotes: 4
Reputation: 1734
Thanks to Mike I found the problem,
My remotes had changed auto-magically.I still have no idea how.
It would be good if someone could explain this.
git remote add torvalds https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Upvotes: 0
Reputation: 13947
I think you want git fetch --tags
. From the git-fetch
manual page:
-t, --tags
Most of the tags are fetched automatically as branch heads are
downloaded, but tags that do not point at objects reachable from
the branch heads that are being tracked will not be fetched by
this mechanism. This flag lets all tags and their associated
objects be downloaded. The default behavior for a remote may be
specified with the remote.<name>.tagopt setting. See git-
config(1).
If this doesn't work, please post the output of git fetch --tags --verbose
.
Upvotes: 29