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: 
Absolute first step is to get Xcode to install the 'command line tools'. Doing that will get the tools into /usr/bin - which is already in your PATH. Go to "Xcode" :: "Preferences" :: "Downloads" :: "Components" where there should be an install "Command Line Tools". If there isn't, go to "Xcode" :: "Open Developer Tool" :: "More Developer Tools" and download the most recent command line tools. Now, 'git' will be in your path. Should also be that 'git help ' works too!

Now configure git with (as suggested by @johnsyweb):

```
git config --global user.name "full name"
git config --global user.email  "email address"

```

and for GitHub:

```
   git config --global github.user "github username"
   git config --global github.token "github token"

```

where you will need to follow the GitHub directions to get your token. You'll also need to carefully follow the GitHub SSH instructions.
After the above 'git config' commands you will have a ~/.gitconfig file ready to go.

Presumably you have created a GitHub repository already. If not, you must. [It doesn't look like you have a public repository yet.] After creating one, the easiest approach to getting a local repository setup is simply:

```
git clone git@github.com:michcleary/fbPic2           # cut and past the URI from the GitHub page after creating a repo
cd fbPic2
echo "more stuff" >> README.md
git add 
git commit -m 'stuff'
git push

```

Done!
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.