git保留历史记录换库

git保留历史记录换库

cd existing_repo
git remote rename origin old-origin
#git remote add origin git@github.com:edgex/docker-edgex-consul.git
git remote add origin https://github.com/edgex/docker-edgex-consul.git
git pull --allow-unrelated-histories # maybe need this
git push -u origin --all
git push -u origin --tags

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com

💰

×

Help us with donation