Question: Is the following code sufficient for the purposes of XHRing a remote server? The only thing changed from normal XHR code is that I put the full server URL into the URL parameter of the open method of the XHR object. I'm not sure if that's enough? It didn't work; so I'm not sure what's missing.

```
<script type="text/javascript">
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://insertURLofRemoteServerHere.com?parameter1=true",true);
xmlhttp.send();
}
</script>

```

Answer: 
I spend a couple of weeks on this and came to the conclusion that the git app on mac uses the https remote repository url but when using the term you need the ssh url. To fix this I clicked the settings tab in the github app then pasted in the ssh url from the github site for my repo.
Firstly I suggest you add `<path to git>` to your `PATH` environment variable. You will probably do this by editing `${HOME}/.bashrc` and adding:

```
export PATH=${PATH}:<path to git>

```

The remote repository certainly exists at <https://github.com/michcleary/> .

It looks like you haven't configured Git locally with your name and email address, which is why you can't see a Git configuration file.

There are a number of ways of doing this, but I suggest you follow the instructions from GitHub's ["Set your user name, email and GitHub token"](http://help.github.com/set-your-user-name-email-and-github-token/) page to set these up for all Git instances on your local machine:

```
$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "your_email@youremail.com"

```

This will add these values to `${HOME}/.gitconfig`.

Repository-specific values will exist in `/path/to/fbPic2/.git/config` (`.git` is a hidden directory).

You should set these configuration items *before* issuing any other `git` commands such as `init` or `commit` or `push`.

I also recommend checking out GitHub's ["SSH Issues"](http://help.github.com/ssh-issues/) page as that is often helpful for first-time GitHub users.