Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6333315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:26:15+00:00 2026-05-24T18:26:15+00:00

I installed hg-git, and I clone my github repository using it: $ hg clone

  • 0

I installed hg-git, and I clone my github repository using it:

$ hg clone git+ssh://git@github.com/my/repo.git
$ git status
fatal: This operation must be run in a work tree
$ hg gexport ( now the .git is created )
$ git status
fatal: This operation must be run in a work tree

I can access the repo using Mercurial, I see the history is intact, but I can no longer use git. Ideally, I would like to be able to continue working in git, do commits, and the hg gimport followed by hg push to a mercurial server. However, I can’t get the git part running. What can I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:26:16+00:00Added an answer on May 24, 2026 at 6:26 pm

    hg-git only works from the hg side. why do you create an hg-clone, when you want to work with git?

    to be able to push to another hg repository you have to pull git changes into your hg repo, then push. if you want to work with git, you have to create a git clone too (hg should be able to work with both github and your local clone when pulling from them – they have the same object ids)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have create clone of project on local machine with git clone git@github.com:test/abc.git Now
I am getting an error:-- git://github.com/odorcicd/authlogic.git (at rails3) is not checked out. Please run
I am trying to install https://github.com/markyoung/silk-sass-mixin $ (sudo) gem install compass $ git clone
Greetings, I recently set up a GitHub repository and installed Git on my system.
I've installed Git to do some development using Visual Studio 2008. Most of the
On my Mac OS X 10.5 (Leopard) machine, I have installed Git 1.6.0.2 using
I have setup a git repository in a linux server, and installed the latest
I'm writing a git-install.sh script: http://gist.github.com/419201 To get Git's latest stable release version number,
I am trying to get a git repository up and running and installed git
I have installed an SSH server on Windows Server 2008, and initialized a git

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.