public:software:git_mirror

Git 备份仓库(mirror)

git clone --mirror https://github.com/exampleuser/repository-to-mirror.git
cd repository-to-mirror
git remote add mirror_host https://github.com/exampleuser/mirrored
git fetch -p origin
git push --mirror mirror_host 

  • 最后更改: 2021/06/27 12:41
  • 由 Jinkin Liu