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 Introduction to Functional Programming Meet Streams Setting Up the Project

The github tab is not under control version

I tried signing up for Github and then signing in the intellj settings but still doesn't show.

https://ibb.co/e4DMPf

1 Answer

Hi Luis

Could do with a little more information in order to help you, for example, is this a project going to GitHub? is this a project you want to clone from GitHub? have you signed up correctly with GitHub?

I'll talk you through the most likely cases. assuming you are using the latest version of IntelliJ and you know the basics on Git, Treehouse has some Git workshops to get you up to speed if not.

To make it easier I recommend setting up your terminal to work with Git

See this tutorial

Or

  1. press (Ctrl+Alt+S) to open up the settings
  2. Open up the tools tab
  3. Click terminal
  4. Change your shell path to whatever you use, I use bash so mine looks like the following:
"{Drive}:\{Folder}\Git\bin\bash.exe" --login -i

Git config signing in

  1. In the terminal type in "git config user.name {your name}"
  2. In the terminal type in "git config user.email{your Git email}" (use git config -- global to set up on all your projects)

Clone a project from Git

  1. From the main menu, click "Check out from version control"
  2. On the drop-down menu, click Git
  3. Enter the directory you want to place the project
  4. Enter the URL (use the https URL for now)
  5. Optional. You can sign in to your Git account here for later use
  6. Click clone and there you go

or

  1. open a new empty project
  2. Open the terminal
  3. type in "git clone git@github.com:{username}/{name of your project}.git"

Add a project to GitHub

  1. Open the project you want to push to git
  2. Open up the terminal and type "git init", this will initialise an empty git repo
  3. Go to Github and copy the clone URL of your git project
  4. type in the terminal "git remote add origin git@github.com:{username}/{name of your project}.git"
  5. You can then push your code to the remote

Recommended reads

Setting up your SSH key

Pasting to the terminal

Treehouse Workshop using GitHub with visual studio, some of this stuff will be useful for you

Setting up your Git, Atlassian tutorials for Git are very good, if your going to read any of these, make sure its this one

I don't know much about git but in the video that i'm on Dennis clicks on github like in :16 in -> https://www.youtube.com/watch?v=Jm7HDGFayvk but I don't have github in my version control

That is an outdated video.

I talk you through this step above in the “clone a project from git” section, as I mention above in this section you click on “git”

I also talk you through this another way in the set up of your git config file.