Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Pulling Java code from GitHub using IntelliJ IDEA

I have installed IntelliJ IDEA on my MacBook Pro. I have a GitHub account, and a project that I would like to clone. Unfortunately, I'm having trouble with compiling and running the code. Can some one point me to helpful information about how to pull Java code from GitHub and actually run it, preferably using IntelliJ Idea?

This is where the code is located. https://github.com/nicolasjhampton/mancala

Thanks!

1 Answer

I'm all set up, and I can enter the following into the Git Repository URL to clone the repository: https://github.com/nicolasjhampton/mancala but, the version I want to use is here, at https://github.com/nicolasjhampton/mancala/tree/makeMoveBreakDown and when I test that URL, I get the message "Repository test has failed."

Craig Dennis
Craig Dennis
Treehouse Teacher

Okay, so that's a branch in Git terms. Pull down the repo and then you can switch branches using this: https://www.jetbrains.com/idea/webhelp10.5/switching-between-branches-checkout.html

I understand branches better now. The following link was perhaps more pertinent to my version of IntelliJ https://www.jetbrains.com/idea/help/managing-branches.html

thanks!