2

I'm trying out both Tower and Sourcetree GUIs on my Mac and I have two very basic questions:

  • Do either of these GUIs install the Git executables or do they use the Git installed on my Mac?
  • Where would Git be installed on my Mac? At the command prompt I've typed "which git", but it clearly isn't in the PATH so no luck with that. It's weird because I swear it used to be in the PATH.
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
ken
  • 8,763
  • 11
  • 72
  • 133

2 Answers2

6

I don't know Tower, but you can see in Sourcetree's settings that it can either use the system Git (I think a version of Git is already embedded in Mac OS X) or a version embedded within the Sourcetree application.

On my system which git gives me:

/usr/bin/git

It should be in the path, if you didn't change anything.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
AsTeR
  • 7,247
  • 14
  • 60
  • 99
  • I've looked in all the standard places but can't find it. I think it may have been undone by the latest XCode install (see my comment to @DennisJaamann) – ken Apr 05 '12 at 11:35
2

As Tower comes with a fully functional Git binary, you don't have to install Git on your system to use Tower. If you also want to use Git on the command line, though, we recommend you use the OS X installer or MacPorts (if present on your system).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Dennis Jaamann
  • 3,547
  • 2
  • 23
  • 42
  • Thanks for the completion of my answer ;) Just a minor point : try to install through brew instead of port, usually versions are more up to date. – AsTeR Apr 05 '12 at 11:08
  • Well the strangest thing is I have Lion. Git WAS installed and in the PATH but it isn't anymore and it's not in any of the locations suggested in the aforementioned thread. I suspect, but don't know, that this may have coincided with the install of XCode 4.3.2 (which didn't replace XCode 4.2.1). – ken Apr 05 '12 at 11:32
  • Ok, after digging around I found git in /Developer/usr/bin. I guess I'll add this to the path and use this across XCode, command line, and SourceTree. (reference link: http://apple.stackexchange.com/a/18472) – ken Apr 05 '12 at 11:43