search

Home  >  Q&A  >  body text

git - 如何删除远程仓库中的提交信息

刚刚向远程仓库push了一个文件,发现push错了文件,请问怎么撤销这次远程仓库中的提交信息,重新进行push

迷茫迷茫2845 days ago626

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-27 09:04:46

    Cancel:

    git reset HEAD^
    

    Forced push will change the remote history

    git push origin master -f 
    

    reply
    0
  • Cancelreply