Sorting out a Git mess

后端 未结 2 1350
南旧
南旧 2020-12-31 16:01

I\'ve just inherited a project which was maintained using Git. At one point, the code was deployed onto 3 separate systems and each system maintained their own decentralised

2条回答
  •  無奈伤痛
    2020-12-31 16:30

    OK. After a big of a slog, I've managed to do it. For anybody else embarking on a similar task, it will involve a lot of:

    git rebase

    commands and when things got screwed up:

    git reflog

    followed by

    git reset --hard HEAD@{ref}

提交回复
热议问题