Store credentials or secret information in git repository in encrypted form.
Few days back I was browsing through a user's github repository and suddenly I found some secret information on the repository which was not supposed to be there. But if it is really required to store credentials in the repository there are ways to store them in encrypted form. So how to store credentials or secret information in a git repository in a secure way so that others can not read it. git-crypt can be used to solve this problem. Only you will be able to unlock your secret files or someone whom you grant access. Steps for using git-crypt to store secret information: Step 1: Install git-crypt On Ubuntu System apt install git-crypt On Centos yum install git-crypt Step 2: Initialize repository with git-crypt Now when the git crypt is installed, create a git repository or if you have one you can skip this step. Go to the git repository and initialize it with git-crypt. git-crypt init Step 3: Add gpg keys to the repo Go to git repo and run the below command. ...