search

Home  >  Q&A  >  body text

git - project code can be cloned and pulled, push fails, you are not allowed to pus

After cloning the code from Alibaba Cloud, modifying it, add commit', and finally the push fails. Why is this?
After completing the task and modifying the code, git status
then add, commit
finally push,
you are not allowed. . . What is the reason? You should already have permissions. This glf is my newly created branch, and the direct clone is sxl_dev. I tried to directly modify the code before, but it didn't work, so I created a new branch and wanted to upload the branch and then merge it, but it still didn't work. I tried to clone my project on github and modify the push without any problem.

ringa_leeringa_lee2780 days ago1026

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-24 11:33:29

    You don’t have the right to push this warehouse. If you want to push, it must be your own warehouse, or the owner of the warehouse must give you permission.

    Anyone can clone and pull general public warehouses, but push requires additional permissions

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-24 11:33:29

    Have you pushed something to this branch before, then deleted the local branch and created a new one? If so, you must update it first before resubmitting, rebase orign git

    reply
    0
  • Cancelreply