Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • My understanding is that the git is not tracking any files in repo yet. I'm trying to do an initial commit ignoring the *.pyc files. Commented Jun 17, 2011 at 0:49
  • ikegami: I've the same conclusion as yours. All along i've done this several times before. I suspect this has something to do with cygwin but yet this is a very simple pattern that it has to support.... Commented Jun 17, 2011 at 0:58
  • @Gnu Engineer, I use git over cygwin at home. I'll try it there later. For now, I added a possible cause and solution to the bottom of my answer. Commented Jun 17, 2011 at 1:02
  • 2
    be cautioned when using git rm --cached -r . it actually removes everything on current directory Commented Mar 1, 2016 at 8:20