<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 19.09.2014 17:40, eirc wrote:<br>
    </div>
    <blockquote
cite="mid:CAA6KNSNpYinOFRLnVUHTSamZr3mJC_Lyg0SPweuqijb6wgK91g@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Sep 19, 2014 at 6:10 PM, Tom
            Johnson <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:tiddlydum@gmail.com" target="_blank">tiddlydum@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote">**.gpg</blockquote>
          </div>
          <br>
          That didn't work either but I eventually found the issue, it's
          that ignoring * ignores all folders themselves so you can
          exclude them from ignoring with !*/</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">So this would probably work:</div>
        <div class="gmail_extra">
          <div class="gmail_extra">*</div>
          <div class="gmail_extra">!.gitignore</div>
          <div class="gmail_extra"><span>!.gpg-id</span><br>
          </div>
          <div class="gmail_extra">!*.gpg</div>
          <div class="gmail_extra">!*/<br>
          </div>
          <div class="gmail_extra"><br>
          </div>
          <div class="gmail_extra">Also you probably want to unignore
            .gitattributes</div>
          <div><br>
          </div>
          -- <br>
          Errikos Koen,<br>
          Web Developer / Software Engineer<br>
          <a moz-do-not-send="true" href="http://www.pamediakopes.gr"
            target="_blank">www.pamediakopes.gr</a>
        </div>
      </div>
      <br>
    </blockquote>
    Thanks eirc, for looking at this.  I tested it and Your example is
    better than mine.  <br>
    Also, for migrating, it should be noted, that git does not apply
    ignore rules to files it had already cached; so do a:<br>
    <pre class="command-line"><span class="command">git rm --cached</span>
</pre>
    … after adding these rules. <br>
    What else could be improved with the git commits security wise?  Are
    there any problems with this .gitignore?<br>
    <br>
    Also I am unsure, weather it is a good or bad idea, to include <font
      face="monospace">!.gitignore</font> in the <font face="monospace">.gitignore</font>
    file .  Per default this file is not included in commits and people
    should have the freedom to ignore whatever they want.  <br>
    <br>
    <br>
    <br>
  </body>
</html>