[pass] [RFC][PATCH] create a default .gitignore for pass if not exists

Justus justus.seifert at cloudandheat.com
Sat Sep 20 12:59:07 CEST 2014


On 19.09.2014 17:40, eirc wrote:
>
> On Fri, Sep 19, 2014 at 6:10 PM, Tom Johnson <tiddlydum at gmail.com
> <mailto:tiddlydum at gmail.com>> 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. 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140920/527ce0ea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140920/527ce0ea/attachment.asc>


More information about the Password-Store mailing list