Moving remote branch

前端 未结 1 775
小蘑菇
小蘑菇 2021-02-06 15:55

After rewriting the commit tree to rename the author and change the email, my local repo and remote origin are out of sync. I am the only developer and want to push my local rep

相关标签:
1条回答
  • 2021-02-06 16:00

    There's a setting on the remote repository that prevents (and it's a good thing) non-fast-forward pushes, that is the type of push you're doing.

    As you point out you're safe to do non-ff push because you're the only one to work with it, so see this blog post to see how to change it:

    1. log into ssh shell with ssh -t USER,PROJECT@shell.sourceforge.net create
    2. navigate to the git repo: cd to /home/git/p/<project_name>/code.git (filling in the correct project name)
    3. edit the config file with vi and set denyNonFastforwards to false
    0 讨论(0)
提交回复
热议问题