Reverse a git fetch

前端 未结 4 494
盖世英雄少女心
盖世英雄少女心 2020-12-29 04:55

I have a thorough understanding of git, and the difference between pull, fetch, and merge. I have a remote that I track, fetch, and merge with occasionally, let say it\'s o

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 05:04

    You want

    git update-ref refs/remotes/origin/master refs/remotes/origin/master@{1}

    update-ref wants the full spell on the ref it's updating because it's (much) lower level than the commands that respect ref-naming conventions.

提交回复
热议问题