{"id":6582,"date":"2014-04-20T13:42:34","date_gmt":"2014-04-20T13:42:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/securing-files-in-git-repository-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:42:34","modified_gmt":"2014-04-20T13:42:34","slug":"securing-files-in-git-repository-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/securing-files-in-git-repository-collection-of-common-programming-errors\/","title":{"rendered":"Securing files in git repository-Collection of common programming errors"},"content":{"rendered":"<p>You shouldn&#8217;t add sensitive data to your repository to start with. Instead, add the respective filenames to <code>.gitignore<\/code> so you never accidentally commit them.<\/p>\n<p>If you <em>really<\/em> have to have the files in the repository, use a githook to encrypt the files before committing and decrypt on checkout only if the correct key is present. Here&#8217;s a starting point for that. <strong>edit<\/strong> In case you really want to do this, git-crypt sounds helpful<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You shouldn&#8217;t add sensitive data to your repository to start with. Instead, add the respective filenames to .gitignore so you never accidentally commit them. If you really have to have the files in the repository, use a githook to encrypt the files before committing and decrypt on checkout only if the correct key is present. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6582","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6582"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6582\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}