Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. cd
  2. git clone git://repo.or.cz/fast-export.git
  3. git init git_repo
  4. cd git_repo
  5. ~/fast-export/hg-fast-export.sh -r /path/to/old/mercurial_repo
  6. git checkout HEAD
  7.  
  8. [extensions]
  9. hggit =
  10.  
  11. $ mkdir git-repo; cd git-repo; git init; cd ..
  12. $ cd hg-repo
  13. $ hg bookmarks hg
  14. $ hg push ../git-repo
  15.  
  16. $ cd git-repo
  17. $ git checkout -b master hg
  18.  
  19. pip install gitifyhg
  20. git clone gitifyhg::<hgrepoaddress>
  21. # done, you have a git repo with the entire history of the hg one
Add Comment
Please, Sign In to add comment