8 Star 25 Fork 18

GiteeStudio / git-secure

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Git Secure

Git 安全存储库工具

Command

cmd info
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:PowerShell release

在 Windows 系统上,默认的 Powershell 需要 5.0,也就是说 Windows 7,8.1 需要升级 Powershell 5.0 (Windows 10 默认为 5.0) Windows Management Framework 5.0

使用

用户需要在码云上创建一个空仓库。

初始化一个空仓库

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 这些文件。

贡献

我们欢迎用户提交 PR,请注意,我们要求代码使用 PowerShell 格式化工具格式化,建议使用 Visual Studio Code (PowerShell 扩展) 修改代码。

MIT License Copyright (C) 2018 GITEE.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

git-secure 主要的功能时在用户提交时将用户的代码或者文件使用 AES 加密,然后发布到代码托管平台 展开 收起
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PowerShell
1
https://gitee.com/oscstudio/git-secure.git
git@gitee.com:oscstudio/git-secure.git
oscstudio
git-secure
git-secure
master

搜索帮助

14c37bed 8189591 565d56ea 8189591