Step by step: preparing the actions create the repository using github for mac import it in SourceTree add gitflow, just because I love it. write down the steps taken and commit the file. Starting Netbeans on Os X choose new project -> new C/C++ application use the location where you checked out your local git stuff add something useful to the main part like printf("hello Bean!\n"); run the program. it should work. commit the code to your repository push the repository to github. It's not really needed but could be useful so you can read this stuff Importing the project to linux.