On 19.09.2014 17:40, eirc wrote:
>
> On Fri, Sep 19, 2014 at 6:10 PM, Tom Johnson <[email protected]
> <mailto:[email protected]>> wrote:
>
>     **.gpg
>
>
> 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 !*/
>
> So this would probably work:
> *
> !.gitignore
> !.gpg-id
> !*.gpg
> !*/
>
> Also you probably want to unignore .gitattributes
>
> -- 
> Errikos Koen,
> Web Developer / Software Engineer
> www.pamediakopes.gr <http://www.pamediakopes.gr>
>
Thanks eirc, for looking at this.  I tested it and Your example is
better than mine. 
Also, for migrating, it should be noted, that git does not apply ignore
rules to files it had already cached; so do a:

git rm --cached

… after adding these rules.
What else could be improved with the git commits security wise?  Are
there any problems with this .gitignore?

Also I am unsure, weather it is a good or bad idea, to include
!.gitignore in the .gitignore file .  Per default this file is not
included in commits and people should have the freedom to ignore
whatever they want. 



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to