3 ms·
That is crazy. Im also bitter that you basically need xcode for git on macOS
by nonethewiser 3y ago
That is crazy. Im also bitter that you basically need xcode for git on macOS
- dubcanada 3y agoYou need the developer tools (like 2.5gb), or homebrew.
- murphyslaw 3y agoA lot of homebrew installs (those from code) require Apple's compile time stuff which only xcode has.
- sigzero 3y agoYou can only install the command line tools now. You don't need a full blown Xcode install.
- daneel_w 3y agoNo, you can build pretty much everything from homebrew using just the command line developer tools. It's been like that for 7-8 years, if not more. Off the top of my head I've only once ever run into a homebrew recipe requiring "xcodebuild" to proceed.
- daneel_w 3y agoIf it's just git and the compiler environment ("SDK") you need then the command line developer tools suffice. The download is something like 700 MiB.
- ParetoOptimal 3y agoNot if you use the Nix package manager: https://nixos.org/ https://nixos.org/ Before that though I used to only install command line tools. At some point though, I forgot the incantation for it and realized I could just use Nix for git as I was using it for other things already.
- acedTrex 3y agono you don't. You just need the devtools which are like 2 gigs. I have developed on mac for years and have never had xcode installed.
- hot_gril 3y agoOr download the official git binary (https://sourceforge.net/projects/git-osx-installer/ https://sourceforge.net/projects/git-osx-installer/) if you don't even want devtools. Been a while since I did that, but there are plenty of other things I avoid building or downloading from a package manager (like NodeJS or Python).
- nomel 3y ago> the official git binary Unfortunately, as the git website [1] states, these are fairly out of date (currently 2.33 from 2021-08-30). To get something recent, you have to build them yourself, which requires...devtools. Seems bizarre, to me, that they don't have them built automatically. [1] https://git-scm.com/download/mac https://git-scm.com/download/mac