git-secret으로 보호할 파일을 추가합니다. : git-secret add <filenames...> 이때 추가할 파일은 .gitignore 를 사용하여 무시하도록 설정해야 합니다.
보호할 파일을 암호화 합니다. : git-secret hide 이제 암호화된 파일을 Commit & Push 하더라도 안전하게 보관할 수 있습니다. 단, 반드시 매 Commit 전에 반드시 git-secret hide 명령어를 실행하여 변경된 사항이 반영되도록 해야 합니다.
보호된 파일을 복호화 합니다. 이때 비밀번호 입력을 요구합니다. : git-secret reveal
다른 사용자를 추가하는 방법은 다음과 같습니다. :
gpg Public Key를 받습니다. (Private Key는 필요 없습니다.)
당신의 gpg에 전달 받은 Public Key를 Import 합니다. : gpg --import KEY_NAME
usage: git secret [--version] [add|cat|changes|clean|hide|init|killperson|list|remove|reveal|tell|usage|whoknows] 'git secret --version' will show version and exit See 'git secret [command] -h'for more information on each command below add [filename.txt] - adds file to be hidden. Also add this file to .gitignore cat [filename.txt] - cats the decrypted contents of the named file to stdout changes [filename.secret] - indicates if the file has changed since checkin clean - deletes encrypted files hide - encrypts (or re-encrypts) the files to be hidden init - creates the .gitsecret directory and contents needed for git-secret killperson [emails] - the reverse of 'tell', removes access for the named user list - shows files to be hidden/encrypted, as in .gitsecret/paths/mapping.cfg remove [files] - removes files from list of hidden files reveal - decrypts all hidden files, as mentioned in'git secret list' tell [email] - add access for the user with imported public key with email whoknows - shows list of email addresses associated with public keys that can reveal files
近期评论