Git-secure 介绍
Git 存储库加密工具
git-secure 主要的功能时在用户提交时将用户的代码或者文件使用 AES 加密,然后发布到代码托管平台,同时也支持用户从远程服务器上 clone
已被加密的存储库并从中恢复源码或者文件。
命令列表
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 |
运行截图
系统依赖
此项目基于 PowerShell 编写,因此,你需要安装 PowerShell 6.0,PowerShell 目前支持 Windows,Linux 和
macOS
你可以去 Github PowerShell 项目的 Release 页面下载
PowerShell.
使用
用户需要在码云上创建一个空仓库。
初始化一个空仓库
git-secure init repo
创建 AES 密钥:
git-secure key
添加文件到暂存区:
git-secure add
创建 commit:
git-secure commit -m "create a new commit"
推送代码:
git-secure push
拉取代码(暂时不支持 fetch):
git-secure pull
配置:
git-secure config aes.key xxxxx
加密
git-secure 使用 AES 256 对每一个常规文件加密,这里的常规文件是不包括 commit,及 .gitignore
.gitattributes,.gitmodules 这些文件。
Git-secure 官网
https://gitee.com/oscstudio/git-secure
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。