MacOSX Development Tools
codeblocks can be found and installed from here. should be relatively straightforward. here there is a problem with one of it’s plugins that makes it highly unstable. To fix this, go in to the plugins menu and disable the keyboard shortcut plugin. Overall, codeblocks is less stable on the mac, but it is still usable.
Gcc is found in the xcode development pack, which should just come with your system, but I couldn’t find it so I had to download it from apple’s development site here. . you can find it in development tools. you have to register, but it should be free.
you can download the latest git for mac from their website here.