git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: most annoying thing in git-push

From
ZZoltá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.

Previous: Alexey I. FroloffNext: Junio C Hamano
Message 2 of 5 in “most annoying thing in git-push”
  1. Alexey I. FroloffJun 22, 2009
  2. ZoltánFüzesiJun 23, 2009
  3. Junio C HamanoJun 23, 2009
  4. Jakub NarebskiJun 23, 2009
  5. Alexey I. FroloffJun 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.