【问题标题】:Copying all branches from repo1 to repo2 in Git在 Git 中将所有分支从 repo1 复制到 repo2
【发布时间】:2018-08-19 09:16:35
【问题描述】:

我正在尝试将所有分支从 repo1 复制到 repo2

我已经执行了以下命令,但我仍然没有在 repo2 中看到分支

cd repo2
git checkout master
git remote add r1remote **url-of-repo1**
git fetch r1remote
git merge r1remote/master --allow-unrelated-histories
git remote rm r1remote

我需要以某种方式执行git push吗?

【问题讨论】:

    标签: git github bitbucket bitbucket-server


    【解决方案1】:
    git push REMOTE '*:*'
    git push REMOTE --all
    

    【讨论】:

      猜你喜欢
      • 2020-12-06
      • 2023-03-09
      • 2021-04-23
      • 2016-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-09
      相关资源
      最近更新 更多