I want to clone a directory of files to start my first AngularJS project and put those files in Apache's htdocs directory with the name of my project, e.g., newProject. I've used the ProGit book, a bunch of tutorials, and Stackoverflow, and after many hours, still don't have it.
From all my messing around, I may have 'polluted' my git. With no newProject directory in the htdocs directory (ie, after deleting prior copies), I point git at htdocs and get a command prompt ending in htdocs. There, I can do a cd newProjects and get a new command prompt ending in htdocs/newProject, even though the directory does not exist. A git status returns fatal:not a git repo (or any of parent directories): .git I have tried rm -rf .git at that prompt and get no git response, just another same commmand prompt. What's going on?
When I add a newProject directory to htdocs and do what ProGit says
git clone git://github.com/angular/angular-seed.git newProject
I get fatal:destination path newProject exists and is not empty, even though Windows Explorer says it is an empty directory, and a git status at that prompt says fatal:not a repo (. . .) .git
When I try the commands at How do you clone a git repository into a specific folder? as follows
git clone git://github.com/angular/angular-seed:newProject htdocs
I get fatal:destination path newProject exists and is not empty A git status at that prompt returns fatal: not a repository
I have also tried the above command without the htdocs, and get the same result.
I have a hunch that I need to reset something in git and then do a correct command to clone the angular-seed directory of files and get it renamed newProject. What do I do?