I want to convert mercurial repo to git repo. Actually I did but I didnt see branches. After I converted repo I can see just one branch(as master) I cannot see any other branches but I can see history(all changes) as right. when clicked any commits I can see like this information :
Date: 19 Nisan 2019 Cuma 15:14:37
Committer: sevgi.cakmak
Change dialog header
--HG--
branch : sevgi-2.0.0
but I cannot see sevgi-2.0.0 branch on the left side (I am using sourcetree).
My steps:
mercurial.ini file:
[extensions]
strip =
histedit =
rebase =
hggit = C:Userssevgi.cakmakDesktophg-githggit
hgext.bookmarks =
[git]
intree = True
hg bookmark -r 2.0.0 master
(also tried like this: hg bookmark -r default master
)
and then I worked this line from cmd
hg gexport --debug //this line converting all revision
after worked this line my output like this:
converting revision a318482e0769e2fceb13a1545cb477d60a00b434
converting revision e444655d161131f9ed1676f6c175813097fd18g8
converting revision 0ab06d22eaf4ff4ecb96caba343fdcc3a85e367k
converting revision 8a4e7f4defb0b04e76e67a825bedf746fe4f3fc5 ......etc
and then I worked this line git config --bool core.bare false
.
After all I did open branches folder under the .git and this older is empty. I want to see branches on my repo.
reference: https://helgeklein.com/blog/2015/06/converting-mercurial-repositories-to-git-on-windows/
also I tried fast-export but didnt work.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…