devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Alexander Lubyagin <lubyagin@yandex.ru>
To: devel-newbies@lists.altlinux.org
Subject: [newbies] git fetch --all --tags (TOO MANY REFS)
Date: Tue, 21 Oct 2025 17:29:17 +0300
Message-ID: <244f3780-a2a6-43d8-ad37-4e616e281b59@yandex.ru> (raw)

Доброго времени суток.

Подскажите, как правильно перенести большое количество тэгов из одного 
репозитория - в другой?

git push --tags ругается: Sorry, TOO MANY REFS (318) at once could not 
be accepted, consider using remote clone

Через поисковик решения не нашёл.

См. лог

$ git remote add src git://git.altlinux.org/gears/b/bind.git
$ git remote -v
origin    gitery:packages/bind.git (fetch)
origin    gitery:packages/bind.git (push)
src    git://git.altlinux.org/gears/b/bind.git (fetch)
src    git://git.altlinux.org/gears/b/bind.git (push)
$ git remote remove origin
$ git fetch --all --tags --prune
remote: Enumerating objects: 333323, done.
remote: Counting objects: 100% (94971/94971), done.
remote: Total 333323 (delta 94971), reused 94971 (delta 94971), 
pack-reused 238352 (from 1)
Receiving objects: 100% (333323/333323), 143.34 MiB | 10.14 MiB/s, done.
Resolving deltas: 100% (272968/272968), completed with 10481 local objects.
 From git://git.altlinux.org/gears/b/bind
  * [new branch]            4.0                        -> src/4.0
   ...
$ git remote remove src
$ git remote add origin gitery:packages/bind.git
$ git push --tags
Enter passphrase for key '/home/lk/.ssh/dfpl':
Enumerating objects: 371021, done.
Counting objects: 100% (364132/364132), done.
Delta compression using up to 4 threads
Compressing objects: 100% (72207/72207), done.
Writing objects: 100% (355665/355665), 166.88 MiB | 8.08 MiB/s, done.
Total 355665 (delta 290476), reused 344231 (delta 280072), pack-reused 0 
(from 0)
remote: Resolving deltas: 100% (290476/290476), completed with 3754 
local objects.
remote: Sorry, TOO MANY REFS (318) at once could not be accepted, 
consider using remote clone
To gitery:packages/bind.git
  ! [remote rejected]       8.3.1-alt1 -> 8.3.1-alt1 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4-alt0.M80P.1 -> 9.10.4-alt0.M80P.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.4-alt1 -> 9.10.4-alt1 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4-alt2 -> 9.10.4-alt2 (pre-receive hook 
declined)
  ! [remote rejected]       9.10.4.P8-alt0.M80P.1 -> 
9.10.4.P8-alt0.M80P.1 (pre-receive hook declined)
  ! [remote rejected]       9.10.4.P8-alt1 -> 9.10.4.P8-alt1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt0.M80C.1 -> 9.10.6-alt0.M80C.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt0.M80P.1 -> 9.10.6-alt0.M80P.1 
(pre-receive hook declined)
  ! [remote rejected]       9.10.6-alt1 -> 9.10.6-alt1 (pre-receive hook 
declined)

   ...

=



             reply	other threads:[~2025-10-21 14:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-21 14:29 Alexander Lubyagin [this message]
2025-10-21 16:02 ` Leonid Znamenok
2025-10-21 21:14 ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=244f3780-a2a6-43d8-ad37-4e616e281b59@yandex.ru \
    --to=lubyagin@yandex.ru \
    --cc=devel-newbies@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git