git 把一个 remote 的所有分支推到另一个 remote

两个 remote

  • origin
  • backup
git push backup refs/remotes/origin/*:refs/heads/*

如果你使用了zsh

git push backup 'refs/remotes/origin/*:refs/heads/*'

https://stackoverflow.com/questions/7818927/git-push-branch-from-one-remote-to-another/45496810#45496810

你可能感兴趣的:(git 把一个 remote 的所有分支推到另一个 remote)