search

Home  >  Q&A  >  body text

How does git push the local warehouse to a new remote branch? Includes all historical commit information

The local warehouse has been used for a long time. I want to push all historical commit records to a remote new empty branch. How to do it?

迷茫迷茫2769 days ago596

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