Вот мое реплика:
$ mkdir git-test
$ cd git-test
$ git init
$ echo "hello world" >> test_file.txt
$ git add .
$ git commit -m "made a change"
$ git tag v1.0.0
$ git push -u --follow-tags origin master
Теперь, если я перейду к своему репо в восходящем направлении, у него есть коммит, но не тег!
--follow-tags
Push all the refs that would be pushed without this option, and also push annotated tags in refs/tags that are missing from the remote but are pointing at committish that are reachable from the
refs being pushed.
Это из справочных страниц.Может быть, я неправильно понимаю, что делает --follow-tags
, но разве он не должен был выдвигать мой тег v1.0.0
, когда он выдавал коммит в апстрим?
Заранее спасибо!