Using Git with XpDev

I have an account over at www.xp-dev.com for my “self projects”.  Recently I was trying to get Git to work. This cost me more hair being pulled out than I was expecting.

Leave any good/bad comments at the bottom, and click the cookies please. They help me out in knowing I helped you. Cheers.

1. Generate a key using PuttyGen

image

2. Save the private and public keys somewhere safe.

3. Open up the public key file and cut the “Key” out.

image

4. On the XPDev website:  “Account” –> “Profile”  and find the “Add a new Public Key”. Paste it in there without any of the Comments or BEGIN/END stuff. Save it.

image

If you get this message then you have added something you shouldn’t have:

Unexpected Error
An error has just occured. It has been logged and will be dealt with shortly.
If it is urgent, please contact our administrators.

5. Add a remote repository to your local repository using the GitExtensions UI or

NOTE:  Your Git repository URL is:

ssh://USERNAME@git.xp-dev.com/YOUR-REPO-NAME

 

GitExtensions UI:

image

Command Line:
git remote add –mirror==PUSH  xpdev ssh://USERNAME@git.xp-dev.com/YOUR-REPO-NAME

6. Load the SSH key (or add it directly using PAgent), entering a password if you have one, then test the connection. It should say Shell logins are disabled. This is another way of saying you have authenticated, but you are not allowed to do anything via the Shell.

image

7. Push – Push it up. This should be the last time you use this specific local repo as you will clone one down in a second to replace it and doing so test the end result.

8. Clone – Clone the remote repo and use this new clone as your working repo.

Troubleshooting

1. Unable to open connection: host does not exist

http://serverfault.com/questions/212825/plink-without-any-parameters-says-unable-to-open-connection

2. Cloning into ‘X’…
error: cannot spawn C:\Program Files (x86)\Git Extentions\PuTTY\plink.exe: No such file or directory
fatal: unable to fork

I think the answer to this is the Program Files (x86) part. I think the shell script doesn’t handle this very well. I have no issues through GitExtensions UI so I won’t look for an answer.

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Using Git with XpDev

  1. ruff says:

    Oh man, wasted around 2 hours trying to setup git on my system with xp-dev. Always got some “permission denied (publickey)” … “host does not exist” … and so on. Knew I had to setup SSH somehow properly, but nowhere is it written how.
    Until I found your blog entry… tnx !!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>