git push tags from one remote repository to another

https://blog.zengrong.net/post/1746.html




1. Take the first remote library
git clone -b master http://192.168.1.205/pay/WithholdingTransaction.git

2.
cd WithholdingTransaction/
git show v1.0
took a look and it is indeed in

3. Add a citic alias to identify another remote library
git remote add citic ssh://[email protected]:50022/opt/gitrepo/withholdings/WithholdingTransaction


4. git remote - v Look
at the various relationships with the remote library

5. git pull citic
to establish a connection with citic 6. git

push citic --tags to push
the local tags

7. Then get the new code from the remote to see if there is any new tag , first change the directory

git clone -b master ssh://[email protected]:50022/opt/gitrepo/withholdings/WithholdingTransaction

git tag (git show --tags)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326220965&siteId=291194637