# git-crypt-win **Repository Path**: pharaoh/git-crypt-win ## Basic Information - **Project Name**: git-crypt-win - **Description**: 在window下使用git-crypt - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2019-05-06 - **Last Updated**: 2023-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 在window下使用git-crypt [git-crypt](https://github.com/AGWA/git-crypt) ## 安装 1. 下载 `git-crypt.exe` 2. 放入Path目录下,例如`C:\Windows` 3. OK ## 使用 1. 创建git目录 2. 初始化git-crypt `git-crypt init` 3. 创建 `.gitattributes` 文件,可以用文件名或通配符,例如: ``` secretfile filter=git-crypt diff=git-crypt *.key filter=git-crypt diff=git-crypt ``` 4. 正常push等操作。 5. 导出keyfile: `git-crypt export-key /path/to/keyfile` 6. clone目录后,执行 `git-crypt unlock /path/to/keyfile`