How to migrate Mercurial hg repo to GitHub using online import engine - github

I am trying to use the online (official) GitHub import engine to migrate this Mercurial repo http://hg.code.sf.net/p/amide/code/ to GitHub. However, I get the following error:
No source repositories were detected at http://hg.code.sf.net/p/amide/code. Please check the URL and try again.
Any idea about what I am doing wrong?
Steps to reproduce:
Go to https://github.com/new/import
Paste in the clone url http://hg.code.sf.net/p/amide/code
Click on begin import

Apparently, the GitHub online importer is not compatible with some Mercurial repository servers.
Instead, one has to use the command line, see:
https://help.github.com/en/github/importing-your-projects-to-github/source-code-migration-tools#importing-from-mercurial
I used the nice conversion script from this repository: https://github.com/frej/fast-export
and was able to get the repo cleanly converted into https://github.com/ferdymercury/amide

Related

How to use a downloaded Bitbucket Reporsitory in Pycharm

I have a repository that is in BitBucket here are the two things I want to do.
1. Download the repository and use it in Pycharm.
2. Directly connect to the repository in Bitbucket.
I have a testing framework that is in the repository but I can't figure how can I use that framework in Pycharm to write my test cases.

can not add SVN repository WSIG in Eclipse

I am trying to add repository WSIG to Eclipse but i get this error unable to load default SVN client.
link WSIG repository in github
Yes as explained above you'll need a Eclipse Plugin to clone the git repository.
Or Install latest eclipse from here and use the already installed plugin.
But as it is mentioned it a GIT repo not SVN thus SVN plugin will not work.
First of all the repository you're trying to clone (in git terms) or checkout (in SVN) is a GIT repository. That means, it uses Git as its version control system.
Thus, you cannot use SVN plugin for that, for basic understanding you can go through here.
Also on github there are ample of ways to get hands-on on Git , which I'll recommend before you actually start working using Git.
Here is the link : https://try.github.io/
Now, for your question you have to do as below for importing in eclipse :
First see , whether you have EGit plugin already installed in your eclipse if not please get this installed, as :
Once thats setup, then Goto --> Import -> Git --> Projects from Git
Then Clone URI
Then add your project link which you see on git hub as :
now paste the URL here. Since we selected http while copying from Github then choose same here as below :
Now feed your user credential and you are all set.
If you still face any difficulty within above steps, there is good documentation with images here as well : https://www.vogella.com/tutorials/EclipseGit/article.html#github
Hope this helps.

Using Team Services online repository without visual studio

I am trying to use a team services account to store other related documents for a project such as some spreadsheets. I want the client to have access to it, but they are not programmers so I am not wanting them to use VS.
The client can access it directly without a problem and can download files, the biggest issue is they will need to be able to upload files as well. Without using a client of some sort they are limited to 10mb or less which won't work for them.
I cannot seem to get github for the desktop to access my online repository unless I first go into VS and clone it.
I am trying to avoid having to walk the client through doing that and would like to be able to use a GUI like github desktop from end to end.
We are all in a Windows environment.
I can create a new repository in github desktop, but cannot seem to figure out how to connect it to my remote (I can't find the URL for the remote anywhere).
I feel I am so close but just missing a couple items, any push would be appreciated.
GitHub Desktop is for GitHub. GitHub is a Git repository hosting service. Not surprisingly, the GitHub tool only works with GitHub.
You can use any general-purpose Git client to interact with VSTS Git repos. SourceTree is good.
You can use some git GUI or git command line to operate local repo.
Git GUI: as Daniel Mann said, you can use soucetree, or tortoiseGit etc.
Git command line:
you can download git here ->
git clone https://account.visualstudio.com/_git/projectname ->
enter email and password to clone ->
git add . (when you add some files) ->
git commit -am 'message'(commit the changes you make) ->
git push(push your commits into VSTS git repo) ->
git pull(pull VSTS git repo changes to localt).
I am just closing this out, thank you to both folks who did answer. I understand that I am using GIT and that GitHub Desktop is for Github. I was looking for the best way to work with a Github repository without using VS and how to access the team services repo for a client of mine. I set him up with Gitkraken which is working. I was never able to figure out how to get Github Desktop to properly clone and push items, but I did not spend a ton of time in it once I used Gitkraken.
Thanks again for taking a swing at it.
I accepted the answer I did because suggesting using the command line at least shows a understanding of my question and what I was looking for.
I know I am late to the game but I can confirm that tortoise git and getext also work fine with VSTS

How to create a repository in github.com using gitpython package

I have tried to create a repository in github with my python program. I found gitpython package in web-search. I can able to pull repository but unable to create a repository in github. please help me.
Git and GitHub are different things.
The former is an open source distributed version control system. The latter is a commercial entity that provides products and services supportng Git. (Confusingly, it is also the name of many of those products.)
There is no way to create a repository on GitHub using the standard git command-line tool.
From GitPython's PyPI page:
GitPython is a python library used to interact with Git repositories.
No mention is made of GitHub, and in general git and GitPython can do basically the same things. If you want to create a repository on GitHub you could use any of the libraries listed here.
Alternatively, you could use their API directly, by POSTing to /user/repos. This method will require you to authenticate, and in my opinion using one of the libraries from the previous list is easier and more robust.

Newbie Unable to clone repo

I've never used a VCS before and I'm attempting to set one up now.
I'm doing some Game Development with Unity3d. At first I googled how to set up VCS for Unity; and I found this: http://www.gamasutra.com/blogs/BurkayOzdemir/20130303/187697/Using_Unity3D_with_external_VCS_Mercurial__Bitbucket_step_to_step_guide.php
I followed it until it came time to clone the repository from within the hgTortoise workbench. When I hit the clone button after copying and pasting the URL to my repo from the BitBucket.org website I received an error: "Repository Git clone https:://username#bitbucket.org/username/projectName.git not found code: 255" and I do understand what an HTTP 404 error is.
Anyone who has used the internet knows it means the page could not be found.
I created this repo as private; is that why it could not find my repo?
Then I proceeded to follow the instructions at BitBucket's "BitBucket 101" help page. I installed Git, had already created a BitBucket account and repo, and the instructions which followed.
I stopped at the point where the help page said to enter some command line things in to Git Shell. I'm running Windows 8.1 and searches have shown me that particular program doesn't exist on this PC.
Am I doing this correctly? What am I doing wrong? All I need is to set up a VCS.
Git and Mercurial are 2 different distributed version control packages. They both use a command line interface. TortoiseHG (the package referred to in the step-by-step you linked to) is a GUI extension that's only used for Mercurial. (HG is the chemical symbol for Mercury, get it?!)
Bitbucket is an online repository that can host either Git or Mercurial repositories.
It looks like you created your repository on Bitbucket as a Git repo and not a Mercurial repo. Just delete the repo on Bitbucket (make sure you have a good copy of your source code) and recreate it as a Mercurial repo. Then work with TortoiseHG as instructed in the step-by-step.
The fact that it's a private repo doesn't matter. That just means it will only be visible to you (vs. everyone) and will require a password to push and pull changes via https or ssh.
Well, first of all, it seems that the tutorial that you seem to be using is based on using Mercurial instead of Git.
If you're comfortable with diving into the command line, you can download TortoiseHG, which is a Windows shell extension: http://tortoisehg.bitbucket.io/
However, there's nothing wrong with using SourceTree as well, which is a GUI-based interface for dealing with both Git and Mercurial repositories: https://www.sourcetreeapp.com/
FYI, if you downloaded Git for Windows, it should've provided you with a terminal called Git Bash that you can use for Git commands.