LINUX.ORG.RU

gentoo-mirror, почему это не форки оригинальных репозиториев?

 


0

1

Суть проблемы:

# git status

On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 23 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

nothing to commit, working tree clean


# git pull

fatal: refusing to merge unrelated histories

предыдущая тема: Для чего нужен https://github.com/gentoo-mirror ?

Что я делал до этого?

  1. на первой машине у меня оригинальный репозиторий, соответствующий https://github.com/EinstokFair/einflay.git
  2. на второй машине у меня репозиторий, установленный командой
eselect repository enable einflay

соответствующий https://github.com/gentoo-mirror/einflay.git

  1. на второй машине я внёс изменения в код, и хочу добиться того, чтобы эти изменения попали в оригинальный репозиторий.
★★☆

Последнее исправление: Einstok_Fair (всего исправлений: 3)

Нашел совет об использовании команды

git pull <remote> <branch> --allow-unrelated-histories

https://github.com/git/git/blob/master/Documentation/RelNotes/2.9.0.txt#L58-L68

The default behavior has changed since Git 2.9 (2019-12-04): «git merge» used to allow merging two branches that have no common base by default, which led to a brand new history of an existing project created and then get pulled by an unsuspecting maintainer, which allowed an unnecessary parallel history merged into the existing project. The command has been taught not to allow this by default, with an escape hatch –allow-unrelated-histories option to be used in a rare event that merges histories of two projects that started their lives independently.

но пока не осознал, что с ним (этим советом) делать

Einstok_Fair ★★☆
() автор топика

Одно из отличий этих репозиториев-зеркал в том, что создаются новые файлы в директории md5-cache:
create mode 100644 metadata/md5-cache/

Einstok_Fair ★★☆
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.