git加密git-crypt

1. copy git-crypt.exe libeay32.dll to C:\Program Files\Git\mingw64\bin
2. cd project
3. git-crypt init
4. specify files to encrypt by creating a .gitattributes file:
    secretfile filter=git-crypt diff=git-crypt
    *.key filter=git-crypt diff=git-crypt
    secretdir/** filter=git-crypt diff=git-crypt
5. git add .
6. git commit
7. git push
8. git-crypt export-key ~/Desktop/git-crypt-key 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章