undo “git filter-branch … — --all”? in one command?

后端 未结 2 775
[愿得一人]
[愿得一人] 2021-02-09 02:26

I started messing around with git filter-branch. The --all option rewrites all branches and tags. Cool. git filter-branch creates a backup of all re

2条回答
  •  余生分开走
    2021-02-09 02:49

    Ehmm, move all refs from .git/refs/original to their place in .git/refs/heads? I mean literally move, these are plain text files. Also you may take a look into .git/packed-refs if it exists.

提交回复
热议问题