search

Home  >  Q&A  >  body text

After git creates a branch and switches to the branch, the contents of the main branch are modified. Why can't it be pushed?

滿天的星座滿天的星座2763 days ago938

reply all(4)I'll reply

  • 迷茫

    迷茫2017-05-25 15:10:34

    There is an information prompt on your screenshot,


    may conflict with your remote branch, so please update.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-25 15:10:34

    You need to merge conflicts first and then submit.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-25 15:10:34

    Maybe your branch is built locally and not on the server.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-25 15:10:34

    First of all, can you list the detailed error message? We can only see part of it now.
    In addition, judging from the error messages I can see, your error is probably because the local submission lags behind the remote submission. If this is the case, it is recommended to pull the remote submission first (git pull ) down, and then push again (git push).

    reply
    0
  • Cancelreply