Re: most annoying thing in git-push
- From
- ZoltánFüzesi <zfuzesi@eaglet.hu>
- Date
- Jun 23, 2009, 05:21 UTC
- Message-ID
- <loom.20090623T050211-438@post.gmane.org>
- In-Reply-To
- <20090622192147.GE5743@altlinux.org>
Alexey I. Froloff <raorn <at> altlinux.org> writes:
Show 9 quoted lines
> > From git-fetch(1), -n option description: "By default, tags that > point at objects that are downloaded from the remote repository > are fetched and stored locally." > > Is is possible to add such functionality to git-push, so it will > push tags that point at objects that were uploaded to the remote > repository? >
Hi,
git-fetch -n does the opposite: "This option disables this automatic tag following." I guess you wanted to write git-fetch -t. git-push --tags will help you, but it's a 2 step push: one for the branches and one for the tags. I use .git/config to solve this:
[remote "origin"] url = ... fetch = +refs/heads/*:refs/remotes/origin/* push = +refs/heads/* push = +refs/tags/*
With these lines added git-push origin will upload all your branches and tags. If you want to upload only some of them, you can enumerate them.