Can't install Git
Posted
by
davemc
on Super User
See other posts from Super User
or by davemc
Published on 2012-11-14T14:24:42Z
Indexed on
2012/11/15
11:09 UTC
Read the original article
Hit count: 2669
Im following the tutorial below to install git.
https://help.github.com/articles/set-up-git
However when I get to the end where I need to install the helper into the same directory where Git itself is installed i get the following error:
Davids-iMac:~ davidcavanagh$ which git
/usr/bin/git
Davids-iMac:~ davidcavanagh$ sudo mv git-credential-osxkeychain /usr/bin
mv: rename git-credential-osxkeychain to /usr/bin/git-credential-osxkeychain: No such file
or directory
Davids-iMac:~ davidcavanagh$
Edit: I am now getting the following error when I install git and then run git -version
Davids-iMac:~ davidcavanagh$ git -version
/usr/bin/git: line 1: syntax error near unexpected token `newline'
/usr/bin/git: line 1: `<?xml version="1.0" encoding="UTF-8"?>'
I was following this tutorial guide:https://help.github.com/articles/set-up-git
I have also tried using home-brew as well and I get the following error when I do this:
Davids-iMac:~ davidcavanagh$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press ENTER to continue or any other key to abort
==> Downloading and Installing Homebrew...
Failed during: git init -q
Can anyone help? Thanks
© Super User or respective owner