Home  >  Q&A  >  body text

git怎么将本地仓库推送到一个新的远程分支?包含所有历史提交信息

本地仓库已经使用很久了,想将所有历史提交记录都推送到一个远程新的空分支 该怎么操作?

迷茫迷茫2749 days ago575

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-02 09:24:49

    I don’t quite understand what you said about pushing all the history records. Isn’t it just a matter of pushing the latest code? It’s so complicated. If so, command git push origin to name your branch. That's it.

    reply
    0
  • Cancelreply