Gergely,
Thanks. I actually have 2 directories from failed attempts last week. One
of them was empty and rmdir newProject2 worked - hurray - to remove that
empty directory.

The other directory, newProject1, has 2 sub-directories that ls says have
files in them. Git thinks they are not empty, though Windows7 shows no sign
of them, even with it set to show hidden directories. I tried rm -rf
newProject1 on that directory, and nothing happens - no feedback, no
changes when I look at ls -la


On Wed, Mar 26, 2014 at 10:57 AM, Nelson Efrain A. Cruz <nea...@gmail.com>wrote:

> If you can't find a solution maybe you can try in [1], the problem seems
> to be specific to Windows and also you need to learn basics commands to
> play around in a terminal, think that when you are in git shell you are in
> a emulated *nix terminal
>
> [1] = https://groups.google.com/forum/#!forum/msysgit
> El mar 26, 2014 3:51 AM, "Gergely Polonkai" <gerg...@polonkai.eu>
> escribió:
>
> Try removing the directory with "rmdir newDirectory" (without git). If
>> that fails, newDirectory is obviously not empty. In that case you should
>> check the contents of the dir with "ls -la newDirectory", and/or remove it
>> with "rm -rf newDirectory".
>>
>> Cheers,
>> Gergely
>>
>>
>> On 26 March 2014 02:00, Michael Laird <michael.w.la...@gmail.com> wrote:
>>
>>> I don't have the problem solved, but here is more information, and maybe
>>> a more targeted question.
>>>
>>> I tried to remove the "thing" Git calls newProject with the command rm
>>> -f newProject
>>> I get rm: 'newProject' is a directory
>>>
>>> I read that directories can be removed with this command  git rm -r
>>> --cached newProject
>>> I get fatal: Not a repository (or any of the parent directories): .git
>>>
>>> So maybe newProject is an empty directory. As I posted above, it has 0
>>> in its description. Maybe that is 0 bytes.
>>>
>>> I read elsewhere that empty directories cannot be removed. There is no
>>> such command in git.
>>>
>>> If that is true, how do I make newProject a "non-empty" directory, and
>>> then remove it - the whole thing?
>>>
>>> On Tuesday, March 25, 2014 4:32:15 PM UTC-4, Michael Laird wrote:
>>>>
>>>> In Nelson's first response, he suggested doing some ls commands, and I
>>>> just remembered that.
>>>> When pointing to the htdocs directory, and I do ls -la
>>>> I get - several responses listing directories and files, plus I get 2
>>>> "things" refering to my first attempts last week. They seem to be
>>>> directories as Git sees them (drwxr-xr-x appears for other directories that
>>>> I can see in Windows Explorer), but they are not visible in Windows
>>>> Explorer, even with hidden files made visible. They look like:
>>>>  drwxr-xr-x  4 UserName Administ   0  Mar 17  newProject
>>>>  drwxr-xr-x  2 UserName Administ   0  Mar 18  newProject1
>>>>
>>>> When I do ls -la newProject
>>>> I get similar things in the 'imaginary' newProject directory,  looking
>>>> like:
>>>> drwxr-xr-x  13 UserName Administ  0 Mar 17  newProject
>>>> drwxr-xr-x   1  UserName Administ  0 Mar 18  angular-seed
>>>>
>>>> So this explains why I get the error message - fatal: destination path
>>>> 'newProject' already exists . . .
>>>>
>>>> What are these "things" that only git is seeing? How do I get rid of
>>>> them? I just did a new install.
>>>>
>>>> On Monday, March 24, 2014 2:17:35 PM UTC-4, Michael Laird wrote:
>>>>>
>>>>>  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 first attempt 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? I have
>>>>> recently deleted git, and re-installed a new download, so maybe this is no
>>>>> longer an issue.
>>>>>
>>>>> 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.
>>>>>
>>>>> Now that I have re-installed a new download of git, I need to do a
>>>>> correct command to clone the angular-seed directory of files and get it
>>>>> renamed newProject in a directory several levels down in Windows7, called
>>>>> apache2/htdos. What do I do?
>>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Git for human beings" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to git-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Git for human beings" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to git-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/SZZH3uGOJyg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 



Mike Laird

12 Arbor Creek Drive, Pittsford, New York 14534
mla...@alum.mit.edu

". . . remembering on both sides that civility is not a sign of weakness,
and sincerity is always subject to proof. Let us never negotiate out of
fear, but let us never fear to negotiate."  - John F. Kennedy

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to