Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Possible Duplicate:
Why is Git not found after installing OS X Lion?

I've recently migrated from an old mac pro with leopard to a new mac pro with snow leopard, everything seems to have gone right so far during the migration process, however I cannot initialize git anymore, my git repos still exist and I can seem the .git folder for my projects but in terminal git init doesn't work anymore and I get a not found error when trying git --version

How do I fix this, do i need to reinstall git, would this effect my existing repos?

share|improve this question

marked as duplicate by bmike, Nathan Greenstein Sep 11 '11 at 21:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Where did you get git from in the original as it is not in OSX it has appeared in Xcode 4 but otherwise a third party install –  Mark Sep 11 '11 at 20:21
add comment

1 Answer 1

Best Guess - your path variable got re-written.

From the the terminal enter: sudo find / -name git

You should see every instance of git on your system. Assuming the git binary is located, make sure its directory is in your path, or instead of typing git init you could type /path/to/git (assumes git binary is ia /path/to).

Alternatively, you could re-install git. Should not affect your repositories. Just make sure the resultant binaries are in your path.

share|improve this answer
1  
I installed git manually, thanks for the comments all, i'll try these suggestions and let you know later on once i'm that computer. –  Beto Sep 11 '11 at 20:36
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.