This is probably a git problem, but it is a direct flow out from the 
AngularJS tutorial. I have spent many hours studying a lot of sources and 
trying things, and I cannot get started with AngularJS. Here's a summary of 
my situation, as best I can describe it.

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?<http://stackoverflow.com/questions/651038/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?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to