Remote rejected (shallow update not allowed) after changing Git remote URL

前端 未结 6 1004
悲&欢浪女
悲&欢浪女 2020-11-28 02:16

I have a project under Git version control that I worked on both a server and my local computer. I originally had the remote origin set as my local computer but I would now

6条回答
  •  无人及你
    2020-11-28 02:56

    If fetching --unshallow doesn't work. There must be some problems with your branch. Fix it with the following command before pushing it.

    git filter-branch -- --all
    

    Do this only with --unshallow doesn't work since there's a SAFETY concern.

提交回复
热议问题