On Tue, Jun 24, 2008 at 16:01, Klas Lindberg <klas.lindberg@xxxxxxxxx> wrote: > Hello > >> git tag -l > foo_tag > test_tag >> > >> git branch -a >> empty? > > At this point, I can create the branch "b" from "foo_tag", so the > fetch did get me a remote tag. It just didn't update a local branch > with the contents (or create a new one). > > Something that also confuses me is that if branch "b" already exists, then > >> git-pull bogustree refs/tags/foo_tag:refs/heads/b > > actually does update branch "b". I find the behaviour quite inconsistent. You asked explicitly to update branch b with :refs/heads/b. > > Unfortunately it isn't a solution for me to fetch tags and then create > branches from the tags. I need to be able to update existing branches, > and I have to do that without first making such a branch the current > branch. > If you have to update existing branches from remote branches you can: git fetch <remote> refs/heads/<remotebranch>:refs/heads/<localbranch> But normally you have some remote tracking branches, such as how the "origin" remote repository is configured. Updating from remote tags is not normal, since tags are not supposed to change. Can you explain why you have to do it this way? Or the whole workflow? Santi P.D.: Please, do not toppost. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html