Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git - Missing tags after pull

Tags:

git

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?

like image 986
Behrooz Avatar asked Apr 03 '13 17:04

Behrooz


People also ask

How to checkout a Git tag?

In order to checkout a Git tag, use the “ git checkout ” command and specify the tagname as well as the branch to be checked out. Note that you will have to make sure that you have the latest tag list from your remote repository.

How do I fetch all tags in a git repository?

To fetch tags from your remote repository, use “git fetch” with the “–all” and the “–tags” options. $ git fetch --all --tags Fetching origin From git-repository 98a14be..7a9ad7f master -> origin/master * [new tag] v1.0 -> v1.0

What happens if I Don't Run git pull?

Without running git pull, your local repository will never be updated with changes from the remote. git pull should be used every day you interact with a repository with a remote, at the minimum. That's why git pull is one of the most used Git commands.

What is git pull in Git?

git-pull - Fetch from and integrate with another repository or a local branch git pull [<options>] [<repository> [<refspec>… ]] Incorporates changes from a remote repository into the current branch. In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD.


2 Answers

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.

like image 127
mpontillo Avatar answered Sep 25 '22 15:09

mpontillo


Try

git pull --tags

Extra characters.

like image 27
sjakubowski Avatar answered Sep 26 '22 15:09

sjakubowski