Мерзавец, переписывая историю основного ответвления и связанных тегов

Мне нужно было , чтобы USB и TCPIP работали для ADB (не спрашивайте), поэтому я сделал следующее (используя указания, которые другие отправили от xda-developers)

Использование adb shell:

su
#Set the port number for adbd
setprop service.adb.tcp.port 5555

#Run the adbd daemon *again* instead of doing stop/start, so there
#are two instances of adbd running.
adbd &

#Set the port back to USB, so the next time ADB is started it's
#on USB again.
setprop service.adb.tcp.port -1

exit

5
задан Ionuț G. Stan 16 July 2009 в 17:06
поделиться

2 ответа

Look like the last step of this procedure described here

$ git log --pretty=oneline origin/releases |
  sed -n -e '/^\([0-9a-f]\{40\}\) Tag\( release\)\? \(.*\)/s--\3|\1|Tag release \3-p'
  > ~/paludis-git-tags

$ while read name msg head ; do
  git tag -m "${msg}" ${name} ${head} ;
  done < paludis-git-tags

The idea is to read tags from the old versions of the repositories, to re-apply them on the new history.


Note: in your original use of git-filter-branch, did you use the:

-- --all

?

the -- that separates filter-branch options from revision options, and the --all to rewrite all branches and tags.

It may have kept the tag in place on the new history (I have not tested it yet though)

5
ответ дан 14 December 2019 в 04:45
поделиться

Во-первых, вы должны переписать теги , например (как VonC сказал ), используя параметр - все для перепишите все ссылки.

Если у вас есть аннотированные теги (тяжелые теги), вы также должны использовать опцию - tag-name-filter , например, как - tag -name-filter cat . Учтите, что подписанные теги нельзя перезаписывать!

2
ответ дан 14 December 2019 в 04:45
поделиться
Другие вопросы по тегам:

Похожие вопросы: