Git-secureGit 安全工具
Git 存儲(chǔ)庫(kù)加密工具
git-secure 主要的功能時(shí)在用戶提交時(shí)將用戶的代碼或者文件使用 AES 加密,然后發(fā)布到代碼托管平臺(tái),同時(shí)也支持用戶從遠(yuǎn)程服務(wù)器上 clone 已被加密的存儲(chǔ)庫(kù)并從中恢復(fù)源碼或者文件。
命令列表
| add | Add file contents to the index |
| clone | Clone a encrypted repository into a new directory |
| config | config your secure repository |
| commit | create a commit |
| diff | show commit changes between commit worktree,etc |
| init | initialize a secure repository |
| help | print help information |
| key | create a aes key |
| pull | Fetch from and integrate with another repository or a local branch |
| push | Update remote refs along with associated objects |
| remote | set remote for secure repositroy |
| status | Show the working tree status |
運(yùn)行截圖
系統(tǒng)依賴
此項(xiàng)目基于 PowerShell 編寫,因此,你需要安裝 PowerShell 6.0,PowerShell 目前支持 Windows,Linux 和 macOS
你可以去 Github PowerShell 項(xiàng)目的 Release 頁(yè)面下載 PowerShell.
使用
用戶需要在碼云上創(chuàng)建一個(gè)空倉(cāng)庫(kù)。
初始化一個(gè)空倉(cāng)庫(kù)
git-secure init repo
創(chuàng)建 AES 密鑰:
git-secure key
添加文件到暫存區(qū):
git-secure add
創(chuàng)建 commit:
git-secure commit -m "create a new commit"
推送代碼:
git-secure push
拉取代碼(暫時(shí)不支持 fetch):
git-secure pull
配置:
git-secure config aes.key xxxxx
加密
git-secure 使用 AES 256 對(duì)每一個(gè)常規(guī)文件加密,這里的常規(guī)文件是不包括 commit,及 .gitignore .gitattributes,.gitmodules 這些文件。
評(píng)論
圖片
表情
