Мне нужно было , чтобы 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
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)
Во-первых, вы должны переписать теги , например (как VonC сказал ), используя параметр - все
для перепишите все ссылки.
Если у вас есть аннотированные теги (тяжелые теги), вы также должны использовать опцию - tag-name-filter
, например, как - tag -name-filter cat
. Учтите, что подписанные теги нельзя перезаписывать!