How do I import a range of commits I git fast-exported to a file with fast-import?

纵然是瞬间 提交于 2019-12-11 17:53:52

问题


I exported a range of commits (a branch) via git fast-export using:

$ git fast-export master...zzz-utumno-refactoring_master > my_original_utumno_r\
efactoring_master_branch_before_rebases

Now I am trying to reimport it. The closest I got was:

$ cat my_original_utumno_refactoring_master_branch_before_rebases | git fast-im\
port
fatal: Branch name doesn't conform to GIT standards: master...zzz-utumno-refacto
ring_master
fast-import: dumping crash report to .git/fast_import_crash_4268

Edit: had also tried:

$ git fast-import < my_original_utumno_refactoring_master_branch_before_rebases
fatal: Branch name doesn't conform to GIT standards: master...zzz-utumno-refacto
ring_master
fast-import: dumping crash report to .git/fast_import_crash_4720

git-fast-import does not give me any clues. How should I proceed ?

Some links I did not quite grok:

  • Malformed branch name in fast-export when specifying non-HEAD/branch revision
  • Import changes into a git repository from universal diff
  • Using git fast-export to export a repo starting at a given commit

来源:https://stackoverflow.com/questions/24738037/how-do-i-import-a-range-of-commits-i-git-fast-exported-to-a-file-with-fast-impor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!