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 trialLester Rodrigo
Courses Plus Student 9,549 Pointsvcs on intellij is not working
Cannot run program "Program Files (x86)\Git\bin\git.exe": CreateProcess error=2, The system cannot find the file specified
14 Answers
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsPossible duplicate: have you checked that out: https://teamtreehouse.com/community/cannot-find-gitexe
Lester Rodrigo
Courses Plus Student 9,549 PointsHey Alexander thanks for helping me its now working :D
Lester Rodrigo
Courses Plus Student 9,549 PointsHey Alexander it says clone failed could not read from the remote repository thats on intellij do you have any idea on that error?
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsWrite command that you are writing or asking to from Intellijidea, or better tell me what exactly do you want to do and what exactly error is? May be screenshot also, because I have Linux, can't check on windows
Lester Rodrigo
Courses Plus Student 9,549 Pointsi see yeah i have the screenshots but how can I send it to you alex?
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsYeah. Well you post it somewhere on the web, and paste link here. Does not matter where you post picture, as long as anyone can access it by clicking.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsI see the error. Thanks.
- Have you tried switching SSH->Native trick:
Try this first and tell me what you got. If does not work, try to use usual clone
- When you clone repo: here is how address may look like:
https://github.com/Lestah/java-debugging-flashy.git
the one that you got: git@github...
is with SSH.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsI also wanted to add: could you tell me why are using SSH version of GitHub cloning? I haven't used that technology with GitHub, If you decided to use, you probably should've set up SSH key in your GitHub account, and also set up according preferences in Intellijidea...
Lester Rodrigo
Courses Plus Student 9,549 PointsIve tried switching to SSH to native still not cloning same error on my screen shot 3 appears. reason why im doing ssh bec that's what craig dennis said on his video here https://teamtreehouse.com/library/introducing-the-project-3 at 03:20. he use ssh
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsRight. I was able to reproduce your error:). I'll first try to solve it on my PC then return back to you.
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsSo as soon as I switched to SSH->Native it worked for me
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsI suggest you use https link: not like he does with SSH, just paste in the window Git Repository URL: https://github.com/Lestah/java-debugging-flashy.git
That should solve your problem. And write here back if it worked. After all it does not really matter how do you clone the repo.
It is hard to say why switching to native does not solve the problem for you. I think solution might be in setting up SSH for you account. Check instruction here if you want: https://help.github.com/articles/generating-an-ssh-key/
I've set it up awhile ago, may be that's why there is some kind of problem with that.
Again if you don't want to dig deeper try usual cloning - it should work, because it does not involve any SSH keys check.
Lester Rodrigo
Courses Plus Student 9,549 Pointshmm is this your path executable as well C:\Program Files\Git\cmd\git.exe or C:\Program Files\Git\bin\git.exe
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsThat depends on your system. Try to manually open C:\Program Files\Git and find in which folder git.exe lies and point to it. I have Linux, can't help on that...
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsSo I talked with Craig, he said you have to setup SSH key in your GitHub account first, like they in https://help.github.com/articles/generating-an-ssh-key/. Have you done that?
Lester Rodrigo
Courses Plus Student 9,549 Pointsoh okay so there will be no effect on how clone the repo so il try this https://github.com/Lestah/java-debugging-flashy.git
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsThere will be no difference. You can easily use HTTPS way of cloning. Craig just wanted to show other ways of doing the same things.
Lester Rodrigo
Courses Plus Student 9,549 PointsHey Ive tried to set up my SSH Key follow all instructions on the link you send to me. I now have an existing ssh key and im on this step now i dont know what to do check this link on step one its not working https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ it says clip isnt working open text editor
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsIs that the step you stuck onto?
clip < ~/.ssh/id_rsa.pub
If that is the step, then probably all you need to do is to copy from data from ~/.ssh/id_rsa.pub
to clipboard. So yes, use GitHub tip:
" If clip isn't working, you can locate the hidden .ssh folder, open the file in your favorite text editor, and copy it to your clipboard."
And the proceed with instructions.
Lester Rodrigo
Courses Plus Student 9,549 Pointshow to copy that data from -/ .ssh/id_rsa.pub to clipboard. that clip isnt working can you pls send me screenshot on how to do it pls thanks Alex :D
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsNo. I cannot because you are using Windows... and I - Linux. I still don't know what do you use: cmd
, Git bash
on windows or what? How did you open that terminal? All you have to do is to find the file ~/.ssh/id_rsa.pub
.
If you are using Git bash
environment on Windows as they suggest on GitHub, then you will be able to run this (This should list your file, without errors):
ls -al ~/.ssh/id_rsa.pub
And if ls
command is successful, type next command, that will print contents of your key to terminal, so that you can copy the key manually using mouse and keyboard:
cat ~/.ssh/id_rsa.pub
Tell me if that will work
Lester Rodrigo
Courses Plus Student 9,549 PointsI tried running that command by the way I'm using git bash on windows the result of that is like this ssh-rsa AAAAB3NzaC1yc2EAAAADA. is that the one that i should paste on key field of step number 6 on this link? https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsYep. looks like it. Check how ssh-rsa
key looks like:
http://stackoverflow.com/questions/12749858/rsa-public-key-format
Try to paste that into your GitHub account like they say in instructions, and be careful about additional spaces, like they say: "When copying your key, don't add any newlines or whitespace."