jlord / git-it-electron

:computer: :mortar_board: Git-it is a (Mac, Win, Linux) Desktop App for Learning Git and GitHub
BSD 2-Clause "Simplified" License
4.68k stars 1.17k forks source link

Get-it says I've completed task one, but task two doesn't work #195

Open gyoungdahl opened 7 years ago

gyoungdahl commented 7 years ago

I've been attempting to work through the Get-it challenges. It claims I've completed the Get Git challenge. So, I'm moving on to the Repository challenge. However any command that starts with git fails with a "command not found" error. I've made a directory called hello-world and I want to init it, or check the status or even enter --version (of course once one failed I didn't exactly expect the others to work).

So, I'm not able to locate git myself either so as to be able to put it into my PATH. (In case you care, I'm using cygwin with the bash shell in a Win7 environment - though launching a command prompt doesn't find it either).

I'd downloaded and unzipped the Get-it-Win-ia32.zip file which leaves me with a Git-it-Win-ia32 directory, that contains (among other things such as a few .dll files and whatnot) the Git-it.exe command, but no git.exe (nor any other actual .exe file, nor anything else that starts with "git"). I set myself up with an account.

SO... it seems that the first challenge got fooled, somehow thinking I had successfully installed git, but I haven't. Did I miss something? Where should git.exe (or .bat or whatever it may be) be located? Any suggestions as to what I need to do from here?

Thanks,

Greg

gyoungdahl commented 7 years ago

Poking around a bit I've noticed in the directory with the Git-it.exe file (the Git-it-Win-ia32 directory) a file named "version". It is set to be executable, but just contains a version string "v1.4.3". This is what I got from the zip file I just downloaded an hour ago or so. The Git-it challenge says I'd need version higher than 1.7.10. I realize that the challenge says to use git --version to determine the version, but obviously at the moment I can't actually do that, so perhaps if I had a git command it would show me the proper version, and this version file may have no relevance. Just grasping for straws I suppose.

Thanks,

Greg

gyoungdahl commented 7 years ago

OK, so further investigation turns up 11 instances of git.exe on my system, none of which are in a location included in my path.

I have a working directory where I'm working on this training. That is:

C:\Greg\WebDev\JavaScript\NodeSchool

So under there I'd created a Git directory. In that Git directory there seem to be two primary sub directories, one named git-it-electron-4.3.3, and the other named Git-it-Win-ia32. Each of those has 4 different subdirectories with a git.exe:

git-it-electron-4.3.3/assets/PortableGit/bin/git.exe git-it-electron-4.3.3/assets/PortableGit/cmd/git.exe git-it-electron-4.3.3/assets/PortableGit/mingw32/bin/git.exe git-it-electron-4.3.3/assets/PortableGit/mingw32/libexec/git-core/git.exe Git-it-Win-ia32/resources/app/assets/PortableGit/bin/git.exe Git-it-Win-ia32/resources/app/assets/PortableGit/cmd/git.exe Git-it-Win-ia32/resources/app/assets/PortableGit/mingw32/bin/git.exe Git-it-Win-ia32/resources/app/assets/PortableGit/mingw32/libexec/git-core/git.exe

There are three more git.exe files under C:\Users\Greg Youngdahl\AppData\Local ...

GitHub/PortableGit_f02737a78695063deace08e96d5042710d3e32db/cmd/git.exe GitHub/PortableGit_f02737a78695063deace08e96d5042710d3e32db/mingw32/bin/git.exe GitHub/PortableGit_f02737a78695063deace08e96d5042710d3e32db/mingw32/libexec/git-core/git.exe

Further I notice in the directions it says that if I'm using Windows (which I am, Win7), I should use the Git Shell, so apparently the cygwin Bash or the Windows Command Prompt (cmd.exe ?) might not be suitable? So one might wonder what shell is the Git Shell? Under the same general directories I can find an abundance of bash.exe, and sh.exe files (several of each), plus I also discovered a couple each of git-cmd.exe and git-bash.exe files.

So it kind of seems that I've not set this up correctly, and I have a bunch of superfluous stuff scattered about on my system. I don't recall exactly how I came to this, but there seem to be two .zip files in that Git directory named get-it-electron-4.3.3.zip and Git-it-Win-ia32.zip, Both of those are dated May 16. They both also seem to have a complete set of Unix-like utilities stashed in there (sort of a cygwin alternative?). Then there is a GitHubSetup.exe with date of May 18, which I believe is what I downloaded and ran today.

What should the expected results be (which files in what directories) after completion of the first challenge? Should I have a git.exe somewhere in my path? Which of the various command prompts/shells should I be using (and again, should it be located in my path)?

There seems to be lots of redundant stuff installed. Can I clean some of it up? Like delete one of the two similar directories (either the Git-it-Win-ia32 or the git-it-electron-4.3.3 directory)? Which one?

Can I delete things (like everything) under the C:\Users\Greg Youngdahl\AppData\Local\GitHub directory?

Perhaps I should just start over? Delete that Git directory (under C:\Greg\WebDev\JavaScript\NodeSchool) and the stuff under AppData\Local\GitHub (anything in the registry, or add/remove programs?), and just install GitHub Desktop again from the link on the get-it-electron page? Any other suggestions?

Thanks,

Greg

gyoungdahl commented 7 years ago

So, having closed down a few windows on my desktop, it seems I uncovered a couple shortcut icons that have appeared there for Git Shell and for GitHub. The Git Shell shortcut points off into the AppData/Local/GitHub path, so I guess that is a valid directory to preserve (though sort of a weird place to install stuff - something wrong with Program Files?). The GitHub icon looks like it is a shortcut (with the little arrow on it), but for some reason the Properties dialog doesn't have a "Shortcut" tab to tell me where the target file is.

I launched the GitHub icon and it brought up what appears to be the GitHub GUI app. Didn't do much with it, but at least it seems to come up and run.

I also launched the Git Shell icon and it came up with a command prompt type window that seems to be bash based (fine with me - echo $0 gives me /usr/bin/bash). Actually that is a version of bash that has been installed there (along with other Unix tools) when I installed cygwin. However it seems to start out in the ~/Documents/GitHub directory (which is otherwise empty - ls -a just shows ./ and ../ ). This despite my plan and efforts to constrain this activity over in my training directory (C:\Greg\WebDev\JavaScript\NodeSchool\Git). Also, a "where git" command indicates that it grabs the git.exe file from the AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db\cmd directory, which is in the $PATH when I launch it from the Git Shell icon.

So, it looks like I should be able to make some progress on the challenges with this. However I still seem to have a lot of extra and apparently redundant files consuming disk space. Can I go ahead and delete the Git-it-Win-ia32 and the git-it-electron-4.3.3 directories (and corresponding .zip files)? And maybe GitHubSetup.exe?

I might also mention that if I'd had better guidance about what was going to happen with the installation, what I should expect to find where, I'd not have had to post to the list here and bother whomever took the time to read it (if anyone).

Thanks,

Greg