Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I push from a git rpository to an hg repository using SourceTree?

bencarp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 8, 2018

The remote repository is hosted on SourceTree? 

1 answer

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2018

Hi, welcome to the Community! Sourcetree is not a hosting service, it's a graphical interface for Git and Hg commands, did you mean the repository is hosted in Bitbucket?

Your question is more of a Git-related question than a Sourcetree-related question, as it depends on whether Git allows you to do such thing. I haven't used this, but it might be the solution to what you want to achieve git-hg. It's a set of scripts for checking out and tracking a mercurial project from git. Note that the tool is from a third party so we can not guarantee it will work, if you have any questions I recommend you contact his author :)

Hope that helps!

Ana

bengivingway
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 10, 2018

Sorry. Yes, I meant the repository is hosted on Bitbucket. My question was - can I use git-hg (or a similar solution) from within Sourcetree. 

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2018

Hi Ben, theoretically you can use it. If it works transparently for git, then Sourcetree should work with it, but please keep in mind this is something we don't support (as in we won't be able to help you with it if it doesn't work). I have word from some colleagues that they tried git-svn in Sourcetree and it worked, although they had to do some work in Sourcetree to enable it.

I don't know what's your reason to need that feature, but maybe you would be interested to convert the repo to mercurial entirely, in that case you can check https://www.mercurial-scm.org/wiki/ConvertExtension.

Whatever your decision is, please let us know, we're also interested to know if you could use it successfully!

Kind regards!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events